@diyet24/design-system
v0.1.10
Published
A React UI component library built with shadcn/ui and TypeScript
Downloads
1,124
Maintainers
Readme
Design System Library
A React UI component library built with shadcn/ui, TypeScript, and Tailwind CSS.
Installation
npm install @diyet24/design-systemUsage
Import Styles
Import the CSS file in your main application file:
import '@diyet24/design-system/styles'Use Components
import { Button, Card, CardContent, CardHeader, CardTitle } from '@diyet24/design-system'
function App() {
return (
<Card>
<CardHeader>
<CardTitle>Hello World</CardTitle>
</CardHeader>
<CardContent>
<Button>Click me</Button>
</CardContent>
</Card>
)
}Development
# Install dependencies
pnpm install
# Build the library
pnpm build
# Watch for changes
pnpm dev
# Type check
pnpm type-check
# Lint
pnpm lintComponents
This library includes all shadcn/ui components:
- Accordion
- Alert
- Alert Dialog
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Command
- Context Menu
- Dialog
- Drawer
- Dropdown Menu
- Form
- Hover Card
- Input
- Label
- Menubar
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Tooltip
And more!
License
MIT
