@zeevo/shadcn-ui
v0.13.0
Published
Published shadcn-ui components
Downloads
3
Readme
@zeevo/shadcn-ui
Simply published shadcn/ui components - New York style.
Usage
These components are designed to be used in a TailwindCSS project.
npm i @zeevo/shadcn-ui
Add @zeevo/shadcn-ui
to your tailwind.config.ts
.
module.exports = {
darkMode: ["class"],
content: [
"./node_modules/@zeevo/shadcn-ui/dist/**/*.js",
]
}
Use in your project
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@zeevo/shadcn-ui/accordion"
export function AccordionDemo() {
return (
<Accordion type="single" collapsible className="w-full">
<AccordionItem value="item-1">
<AccordionTrigger>Is it accessible?</AccordionTrigger>
<AccordionContent>
Yes. It adheres to the WAI-ARIA design pattern.
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-2">
<AccordionTrigger>Is it styled?</AccordionTrigger>
<AccordionContent>
Yes. It comes with default styles that matches the other
components' aesthetic.
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-3">
<AccordionTrigger>Is it animated?</AccordionTrigger>
<AccordionContent>
Yes. It's animated by default, but you can disable it if you prefer.
</AccordionContent>
</AccordionItem>
</Accordion>
)
}
// from https://ui.shadcn.com/docs/components/accordion
All components
All available components and their usage can be found on the official docs