- daisyUI components build with React, Typescript, TailwindCSS and TW CLASSED
- Simple components available in the React Server Component
- No
useEffect
,useState
, etc and used.
Make sure you've installed TailwindCSS and daisyUI.
Install the package with npm or yarn or pnpm:
npm install rsc-daisyui
yarn add rsc-daisyui
pnpm add rsc-daisyui
To prevent TailwindCSS from purging your styles, add the following line to your tailwind.config.js:
import type { Config } from "tailwindcss";
const config: Config = {
content: ["node_modules/rsc-daisyui/dist/**/*.js"],
plugins: [require("daisyui")],
};
export default config;
Import rsc-daisyui components within your component files:
import { Button } from "rsc-daisyui";
export default (props) => {
return <Button color="primary">Click me!</Button>;
};
- Button
- Dropdown
- Modal
- Swap
- Theme Controller
- Accordion
- Avatar
- Badge
- Card
- Carousel
- Chat bubble
- Collapse
- Countdown
- Diff
- Kbd
- Stat
- Table
- Timeline
- Breadcrumbs
- Bottom navigation
- Link
- Menu
- Navbar
- Pagination
- Steps
- Tab
- Alert
- Loading
- Progress
- Radial progress
- Skeleton
- Toast
- Tooltip
- Checkbox
- File input
- Radio
- Range
- Select
- Text input
- Textarea
- Toggle
- Artboard
- Divider
- Drawer
- Footer
- Hero
- Indicator
- Join (group items)
- Mask
- Stack
- Browser
- Code
- Phone
- Window
This project is licensed under the MIT License - see the LICENSE.md file for details.