@wild-animals/ui-kit
v0.1.4
Published
## Description A library of UI components for working on your React application.
Downloads
1
Readme
Inctagram UI-kit
Description
A library of UI components for working on your React application.
Getting Started
- Install library:
npm i @wild-animals/ui-kit
yarn add @wild-animals/ui-kit
pnpm i @wild-animals/ui-kit
- Add the import of styles from the library to your main project file (
main.tsx, index.tsx, ...
), where you import your own set of styles (after them):
/* your import styles */
import '@wild-animals/ui-kit/dist/style.css'
- Use it! Example of using the
Button
component:
import { useState } from 'react'
import { Button } from '@wild-animals/ui-kit/components'
export const App = () => {
const [count, setCount] = useState(0)
return (
<Button onClick={() => setCount((count) => count + 1)} variant='primary'>
count is {count}
</Button>
)
}