@itgold/grandbazar-ui-kit
Version:
Grandbazar.io UI component library: React, Typescript, Tailwind, Rollup, Storybook, Jest.
29 lines (20 loc) • 625 B
Markdown
This is a UI component library created using React, TypeScript, Tailwind, Rollup, Storybook, and Jest.
You can install the library using npm:
```
npm install @itgold/grandbazar-ui-kit
```
To use the library, import the components you need from the library and use them in your React components.
```jsx
import { Rule } from '@itgold/grandbazar-ui-kit';
import SomeIcon from '@/icons/some-icon.svg';
export default function Test() {
return (
<Rule text="Some text" color="bg-emerald-100" onClick={() => alert('hey!')}>
<SomeIcon />
</Rule>
);
}
```