Components
Plus Accordion
An FAQ accordion whose plus turns into a minus.
Is there a free plan?
Yes. Every free component installs with the shadcn CLI and stays free.
Can I use it in client work?
Yes, in any product, personal or commercial. You just can't resell the components themselves.
Does it work without Tailwind?
Yes. Each component carries its own CSS.
<PlusAccordion items={faq} />Installation
npx shadcn@latest add https://ui.zjkm.tech/r/plus-accordion.jsonimport { PlusAccordion } from "@/components/plus-accordion"Using JavaScript? Set tsx: false in components.json and the CLI converts it.
New to shadcn? Run npx shadcn@latest init first. The CLI needs components.json and the @/ import alias.
Usage
An FAQ accordion with a round plus that turns into a minus when its question opens. Native <details> underneath. Opening animates smoothly in browsers that can animate to height: auto; elsewhere sections open at once.
import { PlusAccordion } from "@/components/plus-accordion";
export function PricingFaq() {
return <PlusAccordion items={[{ title: "Can I cancel any time?", content: "Yes, from your account settings." }]} />;
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | { title: string; content: ReactNode }[] | The sections. | |
className | string | Classes for the wrapper. |
With reduced motion, sections open at once and the icon changes without turning.