Filled trigger
flx/accordion-13FreeBlock
Each trigger sits on a muted, rounded background.
Install it
npx shadcn@latest add https://ui.flexnative.com/r/accordion-13.jsonSource
1import {2 Accordion,3 AccordionContent,4 AccordionItem,5 AccordionTrigger,6} from '@/components/ui/accordion'78const items = [9 {10 value: 'item-1',11 title: 'What makes a good filled accordion?',12 body: 'A solid surface gives each row weight and a clear, tappable target — handy on dense settings pages.',13 },14 {15 value: 'item-2',16 title: 'When should I use it?',17 body: 'Reach for filled rows when they need more emphasis than a plain underline divider provides.',18 },19 {20 value: 'item-3',21 title: 'Does it stay accessible?',22 body: 'Yes. It is the same component underneath — only the surface styling changes.',23 },24]2526export function Accordion13() {27 return (28 <Accordion className="w-full max-w-md gap-2">29 {items.map((item) => (30 <AccordionItem31 key={item.value}32 value={item.value}33 className="bg-muted/50 overflow-hidden rounded-lg border-b-0!"34 >35 <AccordionTrigger className="px-4 py-3 hover:no-underline">36 {item.title}37 </AccordionTrigger>38 <AccordionContent className="text-muted-foreground px-4 pt-0">39 {item.body}40 </AccordionContent>41 </AccordionItem>42 ))}43 </Accordion>44 )45}
What it pulls in
Other registry items
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 | |
| Left chevronaccordion-07 | flx | Blocks | Free | 1 dep | |
| Rich contentaccordion-09 | flx | Blocks | Free | no deps |
