@chromia/ui-kit
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

Chromia logo

Chromia UI Kit

The Chromia UI KIT is a set of React components specifically designed for the Chromia ecosystem. It empowers projects like Wallet and Block Explorer to have a consistent look and feel.

Features

  • TypeScript support
  • 23+ components, 2+ hooks
  • CSS-in-JS styling with stitches
  • Server-side rendering support
  • Tree-shaking friendly
  • CommonJS and ES Module support
  • Works with create-react-app, next.js, your own setup, etc.

Installation

pnpm add @chromia/ui-kit

Usage

CSS Reset

This library comes with a CSS reset that should be used in conjunction with the UI KIT. It can be used as follows:

import { resetStyle } from '@chromia/ui-kit';

const App = () => (
  <>
    <style dangerouslySetInnerHTML={{ __html: resetStyle }} />
    <YourApp />
  </>
);

Server-side CSS

If you are using server-side rendering, you will need to import generated styles as well. This can be done as follows:

import { getCssText } from '@chromia/ui-kit';

const App = () => (
  <>
    <style dangerouslySetInnerHTML={{ __html: getCssText() }} />
    <YourApp />
  </>
);

It is recommended to put these styles in the <head> of your app.

Basic example

import { Button } from '@chromia/ui-kit';

const App = () => <Button text={"Click me"} onClick={() => alert("Clicked!")} />;

Documentation

We use Storybook to document the components. Visit the Chromia UI-Kit Storybook to see the components in action and learn how to use them.

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details.

Development

See DEV.md for details on how to develop this library.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.8.0-beta.3948beta
0.7.017latest
0.8.0-pr.02pr

Version History

VersionDownloads (Last 7 Days)Published
0.8.0-beta.3948
0.8.0-beta.3856
0.8.0-beta.3724
0.8.0-beta.362
0.8.0-beta.355
0.8.0-beta.341
0.8.0-beta.330
0.8.0-beta.320
0.8.0-beta.310
0.8.0-beta.300
0.8.0-beta.290
0.8.0-beta.280
0.8.0-beta.270
0.8.0-beta.260
0.8.0-beta.250
0.8.0-beta.240
0.8.0-beta.230
0.8.0-beta.220
0.8.0-beta.210
0.8.0-pr.02
0.8.0-beta.200
0.8.0-beta.190
0.8.0-beta.180
0.8.0-beta.170
0.8.0-beta.160
0.8.0-beta.150
0.8.0-beta.140
0.8.0-beta.130
0.8.0-beta.120
0.8.0-beta.110
0.8.0-beta.100
0.8.0-beta.91
0.8.0-beta.80
0.8.0-beta.71
0.8.0-beta.60
0.8.0-beta.50
0.8.0-beta.40
0.8.0-beta.31
0.8.0-beta.20
0.8.0-beta.10
0.7.1-beta.71
0.7.1-beta.60
0.7.1-beta.50
0.7.1-beta.40
0.7.1-beta.30
0.7.1-beta.20
0.7.1-beta.10
0.7.017
0.7.0-beta.241
0.7.0-beta.230
0.7.0-beta.220
0.7.0-beta.210
0.7.0-beta.200
0.7.0-beta.190
0.7.0-beta.180
0.7.0-beta.170
0.7.0-beta.160
0.7.0-beta.150
0.7.0-beta.140
0.7.0-beta.130
0.7.0-beta.120
0.7.0-beta.110
0.7.0-beta.100
0.7.0-beta.90
0.7.0-beta.80
0.7.0-beta.70
0.7.0-beta.60
0.7.0-beta.50
0.7.0-beta.40
0.7.0-beta.31
0.7.0-beta.21
0.7.0-beta.10
0.6.20
0.6.2-beta.10
0.6.10
0.6.1-beta.10
0.6.00
0.6.0-beta.40
0.6.0-beta.30
0.6.0-beta.20
0.6.0-beta.10
0.5.1-beta.10
0.5.01
0.5.0-beta.490
0.5.0-beta.480
0.5.0-beta.470
0.5.0-beta.460
0.5.0-beta.450
0.5.0-beta.440
0.5.0-beta.430
0.5.0-beta.420
0.5.0-beta.410
0.5.0-pr.10
0.5.0-beta.400
0.5.0-beta.390
0.5.0-beta.380
0.5.0-beta.370
0.5.0-beta.360
0.5.0-beta.350
0.5.0-beta.341
0.5.0-beta.330
0.5.0-beta.320
0.5.0-beta.310
0.5.0-beta.300
0.5.0-beta.291
0.5.0-beta.280
0.5.0-beta.270
0.5.0-beta.260
0.5.0-beta.250
0.5.0-beta.240
0.5.0-beta.230
0.5.0-beta.220
0.5.0-beta.210
0.5.0-beta.200
0.5.0-beta.190
0.5.0-beta.180
0.5.0-beta.170
0.5.0-beta.160
0.5.0-beta.151
0.5.0-beta.140
0.5.0-beta.130
0.5.0-beta.120
0.5.0-beta.110
0.5.0-beta.100
0.5.0-beta.90
0.5.0-beta.81
0.5.0-beta.70
0.5.0-beta.60
0.5.0-beta.51
0.5.0-beta.40
0.5.0-beta.30
0.5.0-beta.20
0.5.0-beta.10
0.4.3-beta.20
0.4.3-beta.10
0.4.20
0.4.2-beta.10
0.4.10
0.4.1-beta.10
0.4.00
0.4.0-beta.200
0.4.0-beta.190
0.4.0-beta.181
0.4.0-beta.170
0.4.0-beta.161
0.4.0-beta.150
0.4.0-beta.140
0.4.0-beta.130
0.4.0-beta.120
0.4.0-beta.110
0.4.0-beta.100
0.4.0-beta.90
0.4.0-beta.80
0.4.0-beta.71
0.4.0-beta.61
0.4.0-beta.50
0.4.0-beta.40
0.4.0-beta.30
0.4.0-beta.20
0.4.0-beta.10
0.3.00
0.3.0-beta.320
0.3.0-beta.310
0.3.0-beta.301
0.3.0-beta.290
0.3.0-beta.281
0.3.0-beta.270
0.3.0-beta.260
0.3.0-beta.250
0.3.0-beta.240
0.3.0-beta.230
0.3.0-beta.220
0.3.0-beta.210
0.3.0-beta.200
0.3.0-beta.190
0.3.0-beta.180
0.3.0-beta.170
0.3.0-beta.160
0.3.0-beta.150
0.3.0-beta.140
0.3.0-beta.131
0.3.0-beta.120
0.3.0-beta.111
0.3.0-beta.100
0.3.0-beta.90
0.3.0-beta.80
0.3.0-beta.71
0.3.0-beta.60
0.3.0-beta.51
0.3.0-beta.40
0.3.0-beta.31
0.3.0-beta.20
0.3.0-beta.10
0.2.10
0.2.01
0.1.00
0.0.10

Package Sidebar

Install

npm i @chromia/ui-kit

Weekly Downloads

180

Version

0.7.0

License

Apache-2.0

Unpacked Size

7.75 MB

Total Files

2619

Last publish

Collaborators

  • dechr
  • dzek69
  • tjelvar
  • perrytang
  • franz_chromia
  • killerstorm
  • joso-cw
  • mimmicromsjo
  • fabianmacklin