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. Accordion
  5. Spring Accordion
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

Accordion

Spring Accordion

An accordion whose panels open on a spring while the plus icon folds into a minus.

npx motionsnack add spring-accordion

Customize

<SpringAccordion />

Props

17 properties

PropertyTypeDefaultDescription
items{ value: string; label: string; content: ReactNode; disabled?: boolean }[]4 demo questionsItems of the accordion. An empty array renders nothing.
valuestring[]-Values of the open items. With a value the component is controlled.
defaultValuestring[]['licence']Values open at the start when uncontrolled.
onChange(value: string[]) => void-Called with the values of the open items after a user toggle.
mode'single' | 'multiple'-Deprecated alias of multiple.
separatedboolean-Deprecated alias of variant='separated'.
showIconbooleantrueDeprecated: false hides the indicator.
accentstring-Deprecated, ignored: the open tile is the monochrome on fill.
durationnumber-Deprecated, ignored: panels expand in 300ms.
bouncenumber-Deprecated, ignored.
classNamestring''Extra classes on the root.
multiplebooleanfalseLet any number of items stay open; otherwise one at a time.
collapsiblebooleantrueWith one item open at a time, let the open one close.
variant'card' | 'separated' | 'flush''card'One card with dividers, a card per item, or dividers only.
indicator'plus' | 'chevron''plus'End-of-row indicator.
headingLevel'2' | '3' | '4' | '5' | '6''3'Heading level of each trigger's heading element.
radius'16' | '12''16'Corner radius of the frame.

About Spring Accordion

Spring Accordion is a list of questions in a single glass card, or as separate cards with a gap between them. Clicking a row opens its panel with a spring on the height, so the answer settles with a small, tunable bounce instead of a linear slide, and the text eases into place as it appears. The plus icon turns half a circle and its vertical bar folds flat into a minus, while the badge fills with the accent colour on the open row. It works in single mode, where opening one row closes the other, or in multiple mode, and it can be controlled or left to manage its own state. Headers are real buttons with arrow, Home and End key navigation, and reduced-motion users get an instant change.

What's included

  • Spring height animation with adjustable duration and bounce
  • Plus icon that morphs into a minus
  • Single or multiple open mode, optional collapse
  • One card with dividers or separated cards
  • Controlled and uncontrolled state (value, defaultValue, onChange)
  • Arrow, Home and End keys, aria-expanded and labelled regions
  • Light and dark look, accent colour prop
Type
Animated React accordion component
Library
Components · Accordion
Stack
Next.js, React, Tailwind CSS
Added
2026-09-20
Install
npx motionsnack add spring-accordion