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. Checkbox
  5. Checkbox 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

Checkbox

Checkbox Group

New

A group of checkboxes with a legend, two-line options and a Select all row that shows a mixed state.

npx motionsnack add checkbox-group

Customize

Error Colour
<CheckboxGroup />

Props

20 properties

PropertyTypeDefaultDescription
options{ value: string; label: string; description?: string; disabled?: boolean }[]4 demo optionsThe checkboxes.
valuestring[]-Controlled checked values. Leave undefined to let the component manage them.
defaultValuestring[]['projects', 'invoices']Checked values on first render when uncontrolled.
onChange(value: string[]) => void-Called with all checked values whenever one changes.
namestring-Name submitted with a form; every checked box sends one value.
idstringgeneratedId prefix of the checkboxes.
classNamestring''Extra classes on the fieldset.
labelstring'Notifications'Legend above the group. Empty hides it.
descriptionstring'Choose what we e-mail you about.'Line under the legend. Empty hides it.
showSelectAllbooleantrueA row on top that checks or clears every option, with a mixed state.
selectAllLabelstring'Select all'Text of the Select all row.
maxSelectednumber0Most boxes that can be checked. 0 means no limit.
limitTextstring'Choose up to {n}.'Helper shown when the limit is reached. {n} is the number.
layout'vertical' | 'horizontal''vertical'Options under each other or side by side.
size'sm' | 'md''md'Size of the boxes.
helperTextstring'You can change this any time in your settings.'Small text under the group. Empty hides it.
errorstring''Error message. Any text colours the unchecked boxes' edge and replaces the helper text.
errorColorstring''Overrides the per-theme error colour. Empty uses the theme pair.
requiredbooleanfalseAt least one box must be checked.
disabledbooleanfalseDisables the whole group.

About Checkbox Group

Checkbox Group is the plain, reliable way to ask several yes-or-no questions at once: notification settings, consents, features to include. A legend and a short description sit on top, and each option can carry a second line under its label. An optional Select all row checks or clears everything and shows a dash while only some options are on. Ticks draw themselves in and the dash grows from the middle, the boxes come in two sizes, and the options stack or sit side by side. Every box is a real checkbox underneath, so keyboard, screen readers and forms work as usual, and the group shares the library's legend, helper text, error state and soft focus outline.

What's included

  • Select all row with a mixed state
  • Ticks that draw themselves in
  • Two-line options and disabled options
  • Vertical or horizontal layout, 16 or 18 px boxes
  • Helper text and error state
  • Real checkboxes: keyboard, forms, screen readers
  • Light and dark look
Type
Animated React checkbox component
Library
Components · Checkbox
Stack
Next.js, React, Tailwind CSS
Added
2026-11-23
Install
npx motionsnack add checkbox-group