Button Group
Priority Levels
Priority as a ladder of bars: the ordinal value is carried by height, not by hue — red and yellow never say which one is higher.
What you can change
- the levels, bar counts and hues through levels
- the initial level 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-051?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-051-* variables. It is a server component: the choice is held by radios inside a fieldset. The glyph is four bars of rising height with the first N filled in: an ordinal value calls for an ordinal cue, and colour stays the second channel. The hue arrives as a number and is passed in through the inline --vibeui-buttongroup-051-hue variable, and all the segment colours are assembled from it by oklch formulas — the fill, the border and the text of the selected level stay in agreement at any hue. The borders are collapsed through margin-inline-start:-1px, the segments are of equal width (flex:1 1 0), and focus raises z-index:2.
Tags
- buttongroup
- priority
- scale
- a11y
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…