DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
  1. Components
  2. Button Group
  3. Button Group Two Buttons
MarkdownShare

Shadcn Button Group Two Buttons

Basic button group with two buttons. Built by composing Button, Button Group. A free, open source shadcn button group example you can install with npx shadcn@latest add @reui/c-button-group-1 and edit as your own code.

Basic button group with two buttons

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.

Best for: The minimal join: 2 outline text buttons sharing one seam, with no icons, menus or handlers

When to use

  • Toolbars of related actions joined into one strip, such as editor, media, zoom or export controls
  • Split buttons that pair a main action with a chevron menu of its variants, such as Save or Publish
  • Segmented pickers and filter bars that join buttons to selects, inputs, counters and status text

When not to use

  • Filled primary buttons divided by thin tinted rules: use the Button Group Separated Buttons example
  • Segmented choices whose pressed option screen readers must hear announced: use the Toggle Group component
  • A text field with an icon, prefix or action drawn inside its own border: use the Input Group component
  • A single standalone action, or actions spaced apart with no shared border: use the Button component

Agent notes

  • On the base twin only children with a data-slot join at the seams, while radix joins every child; wrap custom markup in ButtonGroupText
  • ButtonGroup sets role group but no name; pass aria-label so screen readers say what the set controls
Markdownhttps://reui.io/components/button-group/c-button-group-1.md
MCPget_example("c-button-group-1")
Installnpx shadcn@latest add @reui/c-button-group-1
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in Button Group Two Buttons

  • Button
  • Button Group

About Shadcn Button Group Two Buttons

Basic button group with two buttons. Built by composing Button, Button Group. A free, open source shadcn button group example you can install with npx shadcn@latest add @reui/c-button-group-1 and edit as your own code.

What You Can Build With Shadcn Button Group Two Buttons

  • Composes Button, Button Group, so it drops into any project already using those components.
  • Install it with the shadcn CLI: npx shadcn@latest add @reui/c-button-group-1
  • Open source and free, with the full source on this page to copy or adapt.

More Shadcn Button Group Examples

  • Button & Input Button group with button followed by input
  • Buttons & Badge Button group with buttons and badge
  • Dropdown Menu Button group with dropdown menu
  • Team Activity Team activity and collaboration group
  • Icon Actions Button group using icons for visual actions
  • Status Indicator Dropdown menu with status indicator
  • Like Counter Button group styled as a like button with a counter
  • Nested Groups Nested button groups for complex action sets
  • Basic Pagination Button group used for standard pagination
  • Split Pagination Pagination split into page numbers and navigation arrows
  • Text Alignment Button group for editor text alignment controls
  • Vertical Orientation Vertical button group orientation

Related Shadcn Component Categories

  • Calendar

    Open-source shadcn calendar components for date picking, scheduling flows, and booking interfaces.

  • Card

    Open-source shadcn card components for content previews, dashboard widgets, and product summaries.

  • Carousel

    Open-source shadcn carousel components for image galleries, feature showcases, and testimonials.

  • Cascader

    Nested multi-level selection with drill-down navigation, breadcrumbs, search and custom rows.

  • Chart

    Open-source shadcn chart components for analytics dashboards, KPI tracking, and reports.

  • Checkbox

    Open-source shadcn checkbox components for multi-select forms, settings preferences, and table selection.

Frequently Asked Questions

When should I use Shadcn Button Group Two Buttons?

Use it for the minimal join: 2 outline text buttons sharing one seam, with no icons, menus or handlers.

Shadcn Button Group as a whole fits:

  • Toolbars of related actions joined into one strip, such as editor, media, zoom or export controls
  • Split buttons that pair a main action with a chevron menu of its variants, such as Save or Publish
  • Segmented pickers and filter bars that join buttons to selects, inputs, counters and status text

For filled primary buttons divided by thin tinted rules, use the Button Group Separated Buttons example. For segmented choices whose pressed option screen readers must hear announced, use the Toggle Group component. For a text field with an icon, prefix or action drawn inside its own border, use the Input Group component. For a single standalone action, or actions spaced apart with no shared border, use the Button component.

How do I install Shadcn Button Group Two Buttons?

Run npx shadcn@latest add @reui/c-button-group-1. The CLI copies the source into your project, so you own the code and can edit it freely.

Is Shadcn Button Group Two Buttons free to use?

Yes. Every ReUI component example is open source and free for personal and commercial projects.

Which components does Shadcn Button Group Two Buttons use?

It composes Button, Button Group. The shadcn CLI installs those alongside the example.
NextButton & Input

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App ShellAdded 4 new App Shell blocks
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedNew Advanced category with 3 Data Grid blocks
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area Chart
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users

Templates

  • E-commerce
  • SaaS
  • Dashboard
  • Landing
  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K