0.7.0 • Published 3 months ago

@chromia/ui-kit v0.7.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 months ago

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.

0.8.0-beta.36

3 months ago

0.8.0-beta.35

3 months ago

0.8.0-beta.34

3 months ago

0.8.0-beta.32

4 months ago

0.8.0-beta.33

4 months ago

0.8.0-beta.30

5 months ago

0.8.0-beta.31

5 months ago

0.8.0-beta.18

7 months ago

0.8.0-beta.19

7 months ago

0.8.0-pr.0

7 months ago

0.8.0-beta.14

8 months ago

0.8.0-beta.15

8 months ago

0.8.0-beta.16

8 months ago

0.8.0-beta.17

7 months ago

0.8.0-beta.10

8 months ago

0.8.0-beta.11

8 months ago

0.8.0-beta.12

8 months ago

0.8.0-beta.13

8 months ago

0.8.0-beta.29

5 months ago

0.8.0-beta.25

6 months ago

0.8.0-beta.26

6 months ago

0.8.0-beta.27

6 months ago

0.8.0-beta.28

6 months ago

0.8.0-beta.21

6 months ago

0.8.0-beta.22

6 months ago

0.8.0-beta.23

6 months ago

0.8.0-beta.24

6 months ago

0.8.0-beta.20

7 months ago

0.7.1-beta.7

8 months ago

0.8.0-beta.7

8 months ago

0.8.0-beta.8

8 months ago

0.8.0-beta.5

8 months ago

0.8.0-beta.6

8 months ago

0.8.0-beta.9

8 months ago

0.8.0-beta.3

8 months ago

0.8.0-beta.4

8 months ago

0.8.0-beta.1

8 months ago

0.8.0-beta.2

8 months ago

0.7.1-beta.6

8 months ago

0.7.1-beta.4

8 months ago

0.7.1-beta.3

8 months ago

0.7.1-beta.2

8 months ago

0.7.1-beta.5

8 months ago

0.7.0

8 months ago

0.7.1-beta.1

8 months ago

0.7.0-beta.24

9 months ago

0.7.0-beta.23

9 months ago

0.7.0-beta.22

9 months ago

0.7.0-beta.21

9 months ago

0.7.0-beta.20

9 months ago

0.7.0-beta.19

9 months ago

0.7.0-beta.18

9 months ago

0.7.0-beta.17

9 months ago

0.7.0-beta.16

9 months ago

0.7.0-beta.15

9 months ago

0.7.0-beta.12

9 months ago

0.7.0-beta.14

9 months ago

0.7.0-beta.13

9 months ago

0.7.0-beta.11

9 months ago

0.7.0-beta.10

9 months ago

0.7.0-beta.8

9 months ago

0.7.0-beta.9

9 months ago

0.7.0-beta.7

9 months ago

0.7.0-beta.4

9 months ago

0.7.0-beta.5

9 months ago

0.7.0-beta.6

9 months ago

0.7.0-beta.1

10 months ago

0.7.0-beta.2

10 months ago

0.7.0-beta.3

10 months ago

0.6.0-beta.4

10 months ago

0.6.1-beta.1

10 months ago

0.6.2-beta.1

10 months ago

0.6.2

10 months ago

0.6.1

10 months ago

0.6.0

10 months ago

0.6.0-beta.3

10 months ago

0.6.0-beta.2

10 months ago

0.6.0-beta.1

10 months ago

0.5.1-beta.1

10 months ago

0.5.0

10 months ago

0.5.0-beta.45

10 months ago

0.5.0-beta.48

10 months ago

0.5.0-beta.49

10 months ago

0.5.0-beta.46

10 months ago

0.5.0-beta.47

10 months ago

0.5.0-beta.44

10 months ago

0.5.0-beta.43

10 months ago

0.5.0-pr.1

10 months ago

0.5.0-beta.41

10 months ago

0.5.0-beta.42

10 months ago

0.5.0-beta.40

11 months ago

0.5.0-beta.38

11 months ago

0.5.0-beta.39

11 months ago

0.5.0-beta.37

11 months ago

0.5.0-beta.36

11 months ago

0.5.0-beta.35

11 months ago

0.5.0-beta.33

11 months ago

0.5.0-beta.34

11 months ago

0.5.0-beta.31

11 months ago

0.5.0-beta.32

11 months ago

0.5.0-beta.30

11 months ago

0.5.0-beta.28

12 months ago

0.5.0-beta.29

12 months ago

0.5.0-beta.27

12 months ago

0.5.0-beta.26

12 months ago

0.5.0-beta.24

12 months ago

0.5.0-beta.25

12 months ago

0.5.0-beta.23

12 months ago

0.5.0-beta.22

12 months ago

0.5.0-beta.19

12 months ago

0.5.0-beta.17

12 months ago

0.5.0-beta.18

12 months ago

0.5.0-beta.20

12 months ago

0.5.0-beta.21

12 months ago

0.5.0-beta.16

1 year ago

0.5.0-beta.15

1 year ago

0.5.0-beta.14

1 year ago

0.5.0-beta.12

1 year ago

0.5.0-beta.13

1 year ago

0.5.0-beta.11

1 year ago

0.5.0-beta.10

1 year ago

0.5.0-beta.9

1 year ago

0.5.0-beta.8

1 year ago

0.5.0-beta.7

1 year ago

0.5.0-beta.6

1 year ago

0.5.0-beta.5

1 year ago

0.5.0-beta.4

1 year ago

0.5.0-beta.3

1 year ago

0.5.0-beta.1

1 year ago

0.5.0-beta.2

1 year ago

0.4.3-beta.1

1 year ago

0.4.3-beta.2

1 year ago

0.4.2-beta.1

1 year ago

0.4.2

1 year ago

0.4.1

1 year ago

0.4.1-beta.1

1 year ago

0.4.0

1 year ago

0.4.0-beta.20

1 year ago

0.4.0-beta.19

1 year ago

0.4.0-beta.18

1 year ago

0.4.0-beta.17

1 year ago

0.4.0-beta.16

1 year ago

0.4.0-beta.15

1 year ago

0.4.0-beta.14

1 year ago

0.4.0-beta.13

1 year ago

0.4.0-beta.12

1 year ago

0.4.0-beta.11

1 year ago

0.4.0-beta.10

1 year ago

0.4.0-beta.9

1 year ago

0.4.0-beta.8

1 year ago

0.4.0-beta.7

1 year ago

0.4.0-beta.6

1 year ago

0.4.0-beta.5

1 year ago

0.4.0-beta.4

1 year ago

0.4.0-beta.3

1 year ago

0.4.0-beta.2

1 year ago

0.4.0-beta.1

1 year ago

0.3.0

1 year ago

0.3.0-beta.32

1 year ago

0.3.0-beta.31

1 year ago

0.3.0-beta.30

1 year ago

0.3.0-beta.29

1 year ago

0.3.0-beta.28

1 year ago

0.3.0-beta.27

1 year ago

0.3.0-beta.26

1 year ago

0.3.0-beta.25

1 year ago

0.3.0-beta.24

1 year ago

0.3.0-beta.23

1 year ago

0.3.0-beta.22

1 year ago

0.3.0-beta.21

1 year ago

0.3.0-beta.20

1 year ago

0.3.0-beta.19

1 year ago

0.3.0-beta.18

1 year ago

0.3.0-beta.17

1 year ago

0.3.0-beta.16

1 year ago

0.3.0-beta.15

1 year ago

0.3.0-beta.14

1 year ago

0.3.0-beta.13

1 year ago

0.3.0-beta.12

1 year ago

0.3.0-beta.11

1 year ago

0.3.0-beta.10

1 year ago

0.3.0-beta.9

1 year ago

0.3.0-beta.8

1 year ago

0.3.0-beta.7

1 year ago

0.3.0-beta.6

1 year ago

0.3.0-beta.5

1 year ago

0.3.0-beta.4

1 year ago

0.3.0-beta.3

1 year ago

0.3.0-beta.2

1 year ago

0.3.0-beta.1

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.1

2 years ago