Store Accordion
A single-open accordion with proper aria wiring and an optional animated panel mode.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/store-accordion.jsonDependencies:
lucide-reactUses:store-theme
Heavy organic cotton canvas with a water-resistant finish. Spot clean and air dry.
Free standard shipping over 1,000 MAD. Express delivery arrives next business day.
Return unused items within 30 days for a full refund to your original payment method.
Free standard shipping over 1,000 MAD. Express delivery arrives next business day.
Usage
store-accordion-example.tsx
import { Accordion } from "@dbs/ui";
import { StoreScope } from "./_store";
const ITEMS = [
{ title: "Materials and care", content: "Heavy organic cotton canvas with a water-resistant finish. Spot clean and air dry." },
{ title: "Delivery", content: "Free standard shipping over 1,000 MAD. Express delivery arrives next business day." },
{ title: "Returns", content: "Return unused items within 30 days for a full refund to your original payment method." },
];
export default function StoreAccordionExample() {
return (
<div className="grid w-full gap-4 md:grid-cols-2">
<StoreScope minHeight={0}>
<Accordion items={ITEMS} />
</StoreScope>
<StoreScope dark minHeight={0}>
<Accordion items={ITEMS} animated defaultOpen={1} />
</StoreScope>
</div>
);
}