Button Group
File Type Chips
A file type filter that shows the extension as text instead of an icon: three letters read unambiguously, while a "sheet with a folded corner" is the same for every type.
What you can change
- the types, their extensions and hues through kinds
- the initially enabled types through defaultValue
- the accessible 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-047?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-047-* variables. It is a server component: the choice is multiple, with checkboxes inside. The plate colour arrives as a hue number and is passed in through the inline --vibeui-buttongroup-047-hue variable, while the colours themselves are assembled by the formulas oklch(0.94 0.06 hue) and oklch(0.42 0.15 hue): the palette stays a single formula rather than a set of hardcoded values, and the contrast of the text against the background holds at every hue. The chips are not chained together, they wrap across rows with a gap — the list of extensions grows, and a rigid cluster would run off the screen. The selected chip is marked with a border and an inset box-shadow in the same colour so that the line looks equally thick.
Tags
- buttongroup
- files
- filter
- chips
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…