motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Toggle
  5. Toggle Group
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Toggle

Toggle Group

New

A toolbar of toggle buttons where one stays pressed with a sliding thumb, or several toggle on their own.

npx motionsnack add toggle-group

Customize

<ToggleGroup />

Props

12 properties

PropertyTypeDefaultDescription
items{ value: string; label: string; icon?: ToggleGroupIcon; disabled?: boolean }[]4 alignment buttonsButtons in one row. Icons: bold, italic, underline, strikethrough, align-left, align-center, align-right, align-justify, list, list-ordered, link, code.
groupsToggleGroupItem[][]-Buttons split into groups with a thin separator between them. Replaces items.
valuestring | string[]-Controlled value: a string for single, an array for multiple.
defaultValuestring | string[]'left'Value on first render when uncontrolled.
onChange(value: string | string[]) => void-Called with the new value.
classNamestring''Extra classes on the wrapper.
type'single' | 'multiple''single'Single: one button is pressed at a time and a thumb slides to it. Multiple: every button toggles on its own.
labelstring'Alignment'Name of the group for screen readers and its legend.
showLabelbooleantrueShow the label above the bar.
showLabelsbooleanfalseShow each button's label next to its icon.
allowEmptybooleanfalseIn single mode, clicking the pressed button releases it.
disabledbooleanfalseDisables the whole group.

About Toggle Group

Toggle Group is the button bar from every editor: text alignment, bold and italic, list styles, a grid or list view. In single mode the buttons behave like radios and a soft thumb slides to the one that is pressed; in multiple mode every button toggles on its own and fades its fill in and out. Buttons can be icons from a built-in set of twelve, with their names as tooltips, or icons with labels, and thin separators split them into groups. The pressed look is a soft tint or a solid black or white fill, in two sizes. Arrow keys, Home and End move between buttons with a single tab stop, following the radio group and toolbar patterns, and keyboard focus shows the library's soft outline.

What's included

  • Single mode with a sliding thumb
  • Multiple mode with fills that fade in
  • Twelve built-in icons, or icons with labels
  • Groups with thin separators
  • Soft or solid pressed look, two sizes
  • Roving tab stop and arrow keys
  • Light and dark look
Type
Animated React toggle component
Library
Components · Toggle
Stack
Next.js, React, Tailwind CSS
Added
2026-11-23
Install
npx motionsnack add toggle-group