Left chevron
flx/accordion-07FreeBlock
Rotating chevron placed before the label instead of after it.
Install it
npx shadcn@latest add https://ui.flexnative.com/r/accordion-07.jsonSource
1import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion'2import { ChevronRightIcon } from 'lucide-react'34const items = [5 {6 value: 'getting-started',7 title: 'Getting started',8 body: 'Install the CLI, authenticate, and scaffold your first project in under a minute.',9 },10 {11 value: 'configuration',12 title: 'Configuration',13 body: 'Tune build targets, environment variables, and output paths from a single config file.',14 },15 {16 value: 'deployment',17 title: 'Deployment',18 body: 'Ship to preview and production with atomic, instantly reversible deploys.',19 },20]2122export function Accordion07() {23 return (24 <AccordionPrimitive.Root25 defaultValue={['getting-started']}26 className="flex w-full max-w-md flex-col"27 >28 {items.map((item) => (29 <AccordionPrimitive.Item30 key={item.value}31 value={item.value}32 className="not-last:border-b"33 >34 <AccordionPrimitive.Header className="flex">35 <AccordionPrimitive.Trigger className="group/trigger flex flex-1 items-center gap-2 py-4 text-left text-sm font-medium outline-none focus-visible:underline">36 <ChevronRightIcon className="text-muted-foreground size-4 shrink-0 transition-transform group-aria-expanded/trigger:rotate-90" />37 {item.title}38 </AccordionPrimitive.Trigger>39 </AccordionPrimitive.Header>40 <AccordionPrimitive.Panel className="data-open:animate-accordion-down data-closed:animate-accordion-up overflow-hidden text-sm">41 <p className="text-muted-foreground h-(--accordion-panel-height) pb-4 pl-6 data-ending-style:h-0 data-starting-style:h-0">42 {item.body}43 </p>44 </AccordionPrimitive.Panel>45 </AccordionPrimitive.Item>46 ))}47 </AccordionPrimitive.Root>48 )49}
What it pulls in
npm packages
Files it writes
More from flx
All 450 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Basicaccordion-01 | flx | Blocks | Free | no deps | |
| Multipleaccordion-02 | flx | Blocks | Free | no deps | |
| With iconsaccordion-03 | flx | Blocks | Free | no deps | |
| FAQaccordion-04 | flx | Blocks | Free | no deps | |
| Separated cardsaccordion-05 | flx | Blocks | Free | no deps | |
| Plus / minus iconaccordion-06 | flx | Blocks | Free | 1 dep | |
| Rich contentaccordion-09 | flx | Blocks | Free | no deps | |
| Disabled itemaccordion-10 | flx | Blocks | Free | no deps |
