Collapsible
Native Disclosure
A basic disclosure on a native details element: the state lives in the markup, there is no client code, and it works before hydration.
What you can change
- the heading through the title prop
- the trailing hint through the hint prop
- the body copy through the text prop
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/collapsible-001?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-collapsible-001-*. It is a server component: there are no hooks, and the root of the block is the details element itself. The system marker is removed through list-style:none and ::-webkit-details-marker, and in its place a glyph built from two edges of a square is drawn, with the rotation tied to the [open] selector. The trailing hint is pushed right by margin-left:auto, so when there is no hint the glyph takes the auto for itself through :only-child.
Tags
- collapsible
- details
- no-js
- disclosure
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…