Button group

Full Width Actions

A full-width phone action bar: equal shares through flex:1 1 0, the icon above the caption and room for the home indicator below.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

What you can change

  • the actions and their icons through actions
  • the accessible group name through label
  • the focus ring colour through accent

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

Preview

1440pxHost theme
Full Width Actions — A full-width phone action bar: equal shares through flex:1 1 0, the icon above the caption and room for the home indicator below.

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.club/c/buttongroup-053?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…

How to use

<Buttongroup053
  actions={[{ id: "call", label: "Call" }, { id: "chat", label: "Message" }]}
  label="Contact actions"
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Accent
accent · default: theme colour
Background
background · default: theme colour
Group name
label · default: Contact actions

FAQ

How do I add Full Width Actions with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does Full Width Actions depend on?
No npm packages beyond React and Tailwind CSS.
What can I change in Full Width Actions?
Adapt: the actions and their icons through actions; the accessible group name through label; the focus ring colour through accent. Keep as installed: the local --vibeui-buttongroup-053-* palette — do not swap it for your theme tokens; flex:1 1 0 with a zero basis: with auto a long caption claims more than its share; min-width:0 on the buttons — without it a flex item never shrinks below its content and the bar overflows.
Is Full Width Actions free?
Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/buttongroup-053.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

Technical notes

The component is self-contained: one file, no dependencies, its own palette in the --vibeui-buttongroup-053-* variables. It is a server component: there are no hooks. The buttons share the width equally through flex:1 1 0 — precisely the zero basis, otherwise "Share" would claim more than "Chat"; min-width:0 lets a button shrink below its content. The glyph stands above the caption, because at ninety pixels the two do not fit on one line; the caption is cut with an ellipsis rather than wrapped, so that the bar height is the same for every button. The bottom padding equals env(safe-area-inset-bottom): the bar usually sticks to the bottom edge, where the system gesture runs. The separators are drawn by button + button.

Tags

  • buttongroup
  • mobile
  • full-width
  • actions
Component source

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

Loading…