Accordion
Labelled Accordion
An accordion with label tiles and counters: across ten sections the eye catches the tile instead of re-reading the headings.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
What you can change
- the items array: the tile label, a title, a counter and the body
- marker — the section marker: chevron, triangle, square, plus or none
- badge — show the counter to the right of the heading
A link for your AI agent: preview, code and instructions.
Preview

Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.club/c/accordion-007?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
How to use
<Accordion007
marker="chevron"
items={[
{ glyph: "Ac", title: "Access and roles", badge: "12", body: "Who can change what." },
]}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Marker
marker· default: chevron- Counter
badge· default: on- Background
background· default: theme colour- Open section
defaultOpen· default: -1- Accent
accent· default: theme colour
Used in blocks
- Searchable FAQfaq-005
- Chip Filter FAQfaq-007
- Popular First FAQfaq-010
More in Accordion
FAQ
- How do I add Labelled Accordion with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Labelled Accordion depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Labelled Accordion?
- Adapt: the items array: the tile label, a title, a counter and the body; marker — the section marker: chevron, triangle, square, plus or none; badge — show the counter to the right of the heading. Keep as installed: the local --vibeui-accordion-007-* palette — do not swap it for your theme tokens (bg-card, border-border and the like); the native details/summary: replacing them with buttons and useState gives up find-on-page, keyboard behaviour and pre-hydration state; the tile as text in a square rather than an icon from a library: an icon set drags in a dependency and still will not cover someone else's sections.
- Is Labelled Accordion free?
- Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/accordion-007.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
Technical notes
The component is self-contained: one file, no dependencies, its own palette in local variables --vibeui-accordion-007-*. The label tile is text in a square rather than an icon from a library: everyone's set of sections is different, and the dependency would stay forever. Native <details>/<summary> hold the disclosure. The list has no fill: it is held by its border over the page background, and the theme comes from the surrounding color-scheme through light-dark(). The disclosure marker is drawn in a fixed-size box, so the counter on the right does not shift when the shape changes. Padding and type size are computed from the component's own width through @container.
Tags
- accordion
- icons
- badges
- settings
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…