Button Group

Text Align Bar

Text alignment marked with an underline instead of a fill: the bar grows from the centre and never fights the text below the toolbar.

What you can change

  • the initial alignment through defaultValue
  • the accessible group name through label
  • the form field name through name

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/buttongroup-023?lang=en&theme=dark

2Paste into the chat
3Get it in your project

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-023-* variables. It is a server component: the choice is held by radios inside a fieldset. The selected segment is marked with an ::after pseudo-element — a bar on the bottom border of the panel that appears through transform:scaleX(0) → scaleX(1) with transform-origin:center, so the switch reads as movement rather than as a flash. The active segment deliberately has no fill: the panel stands above the text, and a coloured rectangle would compete with it for attention. The icons are drawn as "lines of text": a short and a long line pushed to the required edge. The option names lie as real text under clip-path rather than in an aria-label — find-in-page reaches them.

Tags

  • buttongroup
  • editor
  • align
  • underline
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…