@violetprotocol/nudge-components
Version:
Components for Nudge's websites and applications.
31 lines (20 loc) • 1.3 kB
Markdown
```bash
pnpm i
```
```bash
pnpm dev
```
Take a look at the [Button](src/components/Button) or [Card](src/components/Card) component. You can duplicate this directory and its contents to get started making your own components.
Each component directory contains the following files:
| File | Contains |
| ------------------ | ----------------------------------------------------------------------------------------------------------------- |
| Button.stories.tsx | Contains the Storybook component documentation (called "stories"), and is used when the Storybook is generated. |
| Button.test.tsx | Tests for the Button component that you can run with `npm run test`. |
| Button.tsx | The Button component, which will be used by your React application and documented by Storybook. |
| index.ts | Export for the Button component so you can import it in your app with `import Button from "./components/Button"`. |
## Customizing Tailwind CSS
Take a look at [tailwind.config.ts](tailwind.config.ts).