Button Group
Language Rows
A language picker written in autonyms: every row carries its own lang and, where needed, dir="rtl" — otherwise Arabic arrives in the wrong font and inside out.
What you can change
- the languages, autonyms and rtl flag through languages
- the initial language 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-021?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-021-* variables. It is a server component: the choice is held by radios inside a fieldset. Every row carries a lang attribute, and for right-to-left writing a dir="rtl": without them the browser substitutes the font and the direction of the current page. The list is vertical because autonyms differ in length and do not fit into equal columns; the borders are collapsed vertically through margin-block-start:-1px, and the rounded corners go through logical properties to the first and last row. The selection mark is a tick on opacity rather than a fill alone: a language is also chosen by people who cannot read the current interface language. The focused row is raised to z-index:2.
Tags
- buttongroup
- language
- i18n
- vertical
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…