All components

Toggle Group

A set of toggle buttons with single or multiple selection and arrow-key navigation.

Variants

ghost
outline

Sizes

xs
sm
md
lg

Multiple selection

Set multiple to let several items stay pressed at once — a text-formatting group. Items then expose aria-pressed instead of acting as radios.

Outline with labels

The outline variant borders every item; text labels work as well as icons. A palette tints the pressed item.

Vertical

orientation="vertical" stacks the items and switches arrow-key navigation to Up and Down.

Disabled

Disable the whole group on Root, or a single option on its Item.

Install

Source

components/ui/ui-sdk/toggle-group.tsx

Examples

Installable blocks built with Toggle Group — real use cases, delivered as source you own.

AI Chat Landing

Zero-state AI entry surface centered on a single composer with a collapsible attachment drawer, @ mention and / command typeahead, mode menus, and category-driven suggestion cards.

Card Grid

Searchable, categorized pattern and starter-kit library with category toggles, saved bookmarks, a sort menu, grouped responsive card sections, and an interactive detail preview dialog.

Contact Form

Studio project inquiry form with response-time status, three value-proposition cards, validated contact and scope fields, multi-select topic toggles, team-size and budget selects, referral attribution, and a structured submission confirmation view.

Page Editor

Collaborative document editor with a resizable pages tree and live block outline, formatting toolbar, page-width switcher, inline-editable structured blocks (headings, paragraphs, callouts, checklists, code snippets), collaborator presence, review comments, and share controls.