Accordion
Stateful Accordion
An accordion whose sections carry state: the one that needs attention is marked by a stripe and a label, and a locked one does not open but explains why.
What you can change
- the items array: a title, the body, a status label and the disabled and highlighted flags
- marker — the section marker: chevron, triangle, square, plus or none
- stripe — how the attention state is marked: bar, ring or none
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.ru/c/accordion-005?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…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, no dependencies, its own palette in local variables --vibeui-accordion-005-*. A locked section is not a <details> but a static block: there is nothing in it to disclose, and it must not pretend to be disclosable. The disclosable sections are held by native <details>/<summary>. The cards have no fill: they are held by their border over the page background, and the state highlights are translucent and work on any background. The attention colour is set by a single warn prop: the label colour is derived from it through color-mix, so a second setting is not needed. The theme comes from the surrounding color-scheme through light-dark(). Padding and type size are computed from the component's own width through @container.
Tags
- accordion
- status
- state
- no-js
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…