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. Switch
  5. Switch Row
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

Switch

Switch Row

New

A settings list with a name and description on the left and a switch on the right of every row.

npx motionsnack add switch-row

Customize

Error Colour
<SwitchRow />

Props

14 properties

PropertyTypeDefaultDescription
rows{ id: string; label: string; description?: string; defaultChecked?: boolean; disabled?: boolean }[]5 demo settingsThe settings, one row each.
valueRecord<string, boolean>-Controlled states by row id. Leave undefined to let the component manage them.
defaultValueRecord<string, boolean>-States on first render when uncontrolled; a row's own defaultChecked is used when missing here.
onChange(value: Record<string, boolean>) => void-Called with every row's state (by row id) after a row changes.
onRowChange(id: string, checked: boolean) => void-Deprecated: called with the row id and its new state. Use onChange.
namestring-Name prefix for form submission; each switch is sent as name[id].
classNamestring''Extra classes on the wrapper.
titlestring'Notifications'Heading of the list. Empty hides it.
descriptionstring'Pick how we keep you posted.'Line under the heading. Empty hides it.
variant'plain' | 'card''plain'Rows straight on the page, or inside a bordered card.
size'sm' | 'md' | 'lg''md'Size of the switches: S 28x16, M 36x20, L 44x24.
errorstring''Error message under the list.
errorColorstring''Overrides the per-theme error colour. Empty uses the theme pair.
disabledbooleanfalseDisables every row.

About Switch Row

Switch Row is the settings screen pattern people know from their phones: a short heading, then one row per option with its name and a line of explanation on the left and a switch on the right. The whole row is the click target, rows are divided by hairlines and tint softly under the pointer, and a row can be shown but disabled, for something that is coming soon. It sits straight on the page or inside a bordered card, with switches in three sizes that slide and stretch like the library's toggle. Values come keyed by row id, controlled or not, every switch can post with a form, and keyboard focus shows the same soft outline as every other field.

What's included

  • Name and description on the left, switch on the right
  • Whole row clickable, hairline dividers and hover tint
  • Plain or card layout
  • Disabled rows for options coming soon
  • Values keyed by row id, controlled or uncontrolled
  • Three switch sizes and form names per row
  • Light and dark look
Type
Animated React switch component
Library
Components · Switch
Stack
Next.js, React, Tailwind CSS
Added
2026-11-23
Install
npx motionsnack add switch-row