Accordion
Permalink Accordion
An accordion where every question has its own address: a link into a closed section opens it by itself, with no line of JS — an answer can be quoted and sent.
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: id, question and answer — id is required and must be unique on the page
- marker — the section marker: chevron or none
- defaultOpen — which section opens when the address carries no question id; -1 closes them all
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-014?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
<Accordion014
marker="chevron"
items={[
{ id: "faq-install", question: "How do I install the component?", answer: "Copy the command from the card." },
]}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Marker
marker· default: chevron- Open section
defaultOpen· default: -1- Accent
accent· default: theme colour- Single section
exclusive· default: on- Background
background· default: theme colour
More in Accordion
FAQ
- How do I add Permalink 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 Permalink Accordion depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Permalink Accordion?
- Adapt: the items array: id, question and answer — id is required and must be unique on the page; marker — the section marker: chevron or none; defaultOpen — which section opens when the address carries no question id; -1 closes them all. Keep as installed: the local --vibeui-accordion-014-* palette — do not swap it for your theme tokens (bg-card, border-border and the like); the id on the answer paragraph matching item.id, not on details itself: the browser expands a closed ancestor of the target, and being the target itself is not enough for that rule; the link button beside details rather than inside summary: an interactive element inside summary still toggles the section on click, turning one link into two competing actions.
- Is Permalink 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-014.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-014-*. Every details carries an id matching the question's id: when a link points at that id, the browser opens the section and scrolls to it by itself — that is part of the built-in fragment navigation algorithm, no JS involved. The link button sits beside summary rather than inside it, so clicking it does not compete with the ordinary click-to-toggle on the heading. The section matching the current address gets a faint fill through the :target selector. Mutual exclusion, as in accordion-001, is held by the name attribute on details. Padding and type size are computed from the component's own width through @container.
Tags
- accordion
- faq
- deep-link
- no-js
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…