All components
Accordion Left Chevron
accordionsOrigin UI component.
responsive · 520px
Install
Same command in any shadcn project — React (Vite/CRA), Next.js, Remix, Astro, and more:
$
npx shadcn@latest add https://your-domain/r/comp-336.jsonUsage
import Cmp from "@/registry/origin-ui/comp-336";
export default function Demo() {
return <Cmp />;
}Component source
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion";
const items = [
{
content:
"coss ui focuses on developer experience and performance. Built with TypeScript, it offers excellent type safety, follows accessibility standards, and provides comprehensive documentation with regular updates.",
id: "1",
title: "What makes coss ui different?",
},
{
content:
"Use our CSS variables for global styling, or className and style props for component-specific changes. We support CSS modules, Tailwind, and dark mode out of the box.",
id: "2",
title: "How can I customize the components?",
},
{
content:
"Yes, with tree-shaking, code splitting, and minimal runtime overhead. Most components are under 5KB gzipped.",
id: "3",
title: "Is coss ui optimized for performance?",
},
{
content:
"All components follow WAI-ARIA standards, featuring proper ARIA attributes, keyboard navigation, and screen reader support. Regular testing ensures compatibility with NVDA, VoiceOver, and JAWS.",
id: "4",
title: "How accessible are the components?",
},
];
export default function Component() {
return (
<div className="space-y-4">
<h2 className="font-bold text-xl">W/ left chevron</h2>
<Accordion className="w-full" collapsible defaultValue="3" type="single">
{items.map((item) => (
<AccordionItem className="py-2" key={item.id} value={item.id}>
<AccordionTrigger className="[&>svg]:-order-1 justify-start gap-3 py-2 text-[15px] leading-6 hover:no-underline">
{item.title}
</AccordionTrigger>
<AccordionContent className="ps-7 pb-2 text-muted-foreground">
{item.content}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
);
}Source: Origin UI