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. Tabs
  5. Sliding Tabs
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

Tabs

Sliding Tabs

Tabs with an active pill that springs from tab to tab and panels that slide in the direction of travel.

npx motionsnack add sliding-tabs

Customize

<SlidingTabs />

Props

11 properties

PropertyTypeDefaultDescription
items{ value?: string; label: string; content?: string; count?: number; disabled?: boolean }[]4 demo tabsTabs with their panel text. `value` falls back to the position.
childrenReactNode-Panel content of the selected tab. Replaces the items' content; switch it on value.
orientation'horizontal' | 'vertical''horizontal'Tabs in a row, or a column with the indicator on the start side.
activation'automatic' | 'manual''automatic'Automatic: focus selects. Manual: arrows move focus, Enter / Space selects.
labelstring'Sections'Name of the tab list for screen readers.
valuestring-Controlled selected tab (its value).
defaultValuestringfirst tabTab that is active on first render when uncontrolled.
onChange(value: string) => void-Called with the value of the tab the user picked.
classNamestring''Extra classes on the wrapper.
variant'pill' | 'line''pill'A raised pill behind the tabs or a 2px line under them.
fullWidthbooleanfalseTabs share the full width instead of hugging their labels.

About Sliding Tabs

Sliding Tabs renders a tab list from an array of labels and texts. The active indicator is one shared element, so it slides between tabs with a spring bounce instead of jumping. The panels cross-fade and shift a few pixels in the direction you moved, which makes the order of the tabs easy to feel. Two variants are included: a filled pill inside a glass track and a gradient underline. Arrow keys, Home and End move between tabs with a roving tabindex, and the component works controlled or uncontrolled.

What's included

  • Shared-layout indicator with adjustable spring bounce
  • Panels cross-fade and slide in the direction of travel
  • Pill and underline variants
  • Arrow keys, Home and End with roving tabindex
  • Controlled or uncontrolled: value, defaultValue, onChange
  • Correct tablist, tab and tabpanel roles
  • Reduced-motion fallback to plain fades
Type
Animated React tabs component
Library
Components · Tabs
Stack
Next.js, React, Tailwind CSS
Added
2026-09-20
Install
npx motionsnack add sliding-tabs