Button Group
Card Header Group
An action group in a card header that folds by the card's own width: the threshold comes from a container query, not from the viewport.
What you can change
- the heading through title and the second line through subtitle
- the set of secondary actions through actions
- the primary action caption through primary and the group name through label
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/buttongroup-034?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 the --vibeui-buttongroup-034-* variables. It is a server component: there are no hooks. The root is declared container-type:inline-size, while the layout lives on the inner [data-part="shell"] — a rule inside @container applies to the container's descendants but not to the container itself, and that is a trap rather than a detail. By default the layout is the narrow one: the header in a column, the buttons at full width; @container (min-width: 30rem) turns it into a row. The buttons are chained with margin-inline-start:-1px, the rounded corners go to the edge ones only, and the primary one is set apart by a fill and stands last. The card carries a light surface of its own, so it reads on a dark showcase background too.
Tags
- buttongroup
- card
- container-query
- header
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…