# Button & toggle components for React & shadcn/ui

> Free React buttons, button groups, toggles and toggle groups for shadcn/ui, with loading, success and error states built into the button.

Canonical: https://hextaui.com/components/actions
Last updated: 2026-11-14

Components people press: buttons in every variant and size, joined button groups, toggles and toggle groups.

The button runs its own loading, success and error flow from the promise you return, skips the spinner for fast requests and keeps focus while it works.

## What each one does

- [Button](https://hextaui.com/docs/button) - Buttons in every variant and size, with a built-in loading, success and error flow that skips the spinner for fast requests.
- [Button group](https://hextaui.com/docs/button-group) - Buttons joined into one control, with shared seams, separators, text addons, nesting and vertical stacks.
- [Toggle](https://hextaui.com/docs/toggle) - A button that stays on or off, with a fill that settles in when pressed, a clear hover-to-on step and icons that can fill with the state.
- [Toggle group](https://hextaui.com/docs/toggle-group) - A row of toggles for one choice or many, with a fill that slides to the picked item, joined or spaced items and arrow-key focus.

## Built into Pro blocks

Blocks for AI products that are built from these components.

- [Agent Todos](https://hextaui.com/blocks/agent-todos) - The plan an agent keeps while it works, one line per step. Handles steps in progress, failed steps and plan changes mid-run.
- [Artifact](https://hextaui.com/blocks/artifact) - The panel beside an AI chat that shows what the model made. Handles content still streaming, a sandboxed preview and versions you can restore.
- [Chat Sidebar](https://hextaui.com/blocks/chat-sidebar) - The sidebar of a chat app, with pinned chats, projects and recents. Handles rename in place, delete with undo and chats still replying.
- [Chat Thread](https://hextaui.com/blocks/chat-thread) - The conversation view of an AI chat. Handles replies that stream, edit and retry, and versions of a reply you can switch between.
- [Code Block](https://hextaui.com/blocks/code-block) - Code blocks for AI answers. Highlighting keeps up with streaming, diffs can be accepted or rejected, and commands run in a terminal.
- [Diff Review](https://hextaui.com/blocks/diff-review) - A review of an agent’s file edits before they land. Handles accept or reject per change, comments back to the agent and edits still streaming.

## Related

- [Form components](https://hextaui.com/components/forms) - Free React form components for shadcn/ui on Base UI: inputs, selects, comboboxes, date pickers, OTP fields and validation that shakes, counts and explains.
- [Overlay components](https://hextaui.com/components/overlays) - Free React dialogs, sheets, drawers, popovers, menus, tooltips and a command palette for shadcn/ui, with focus handled and motion you can interrupt.
- [Data display components](https://hextaui.com/components/data-display) - Free React tables, data tables, charts, trees, cards, badges, avatars and animated numbers for shadcn/ui, built on Base UI and Tailwind CSS.
- [Layout components](https://hextaui.com/components/layout) - Free React accordions, collapsibles, carousels, resizable panels, scroll areas and aspect ratio boxes for shadcn/ui, with height motion you can reverse.
- [Feedback components](https://hextaui.com/components/feedback) - Free React toasts, alerts, progress bars, spinners, skeletons and empty states for shadcn/ui, with loading that waits before it shows and announces changes.
- [Chat UI components](https://hextaui.com/components/chat) - Free React chat UI components for shadcn/ui: messages, bubbles, a message scroller that follows streaming replies, attachments and date markers.
- [Navigation components](https://hextaui.com/components/navigation) - Free React sidebars, tabs, breadcrumbs, pagination and navigation menus for shadcn/ui on Base UI, with keyboard support and right-to-left layouts.
