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. Sidebar
  5. Icon Rail
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

Sidebar

Icon Rail

New

A narrow column of icons with one tooltip that glides between them and an active pill that slides to the picked icon.

npx motionsnack add icon-rail

Customize

<IconRail />

Props

10 properties

PropertyTypeDefaultDescription
items{ value?: string; label: string; icon: IconRailIcon; href?: string; dot?: boolean }[]5 demo iconsIcons at the top. Icons: home, inbox, folder, calendar, chart-column, users, file, settings, circle-help, search, bell, star, layers. An empty or '#' href renders a button.
footerItemsIconRailItem[]Help, SettingsIcons pinned to the bottom of the rail.
headerReactNode-Slot above the icons, such as a logo.
footerReactNode-Slot under the bottom icons, such as an avatar.
valuestring-Controlled current item (its value).
defaultValuestringfirst itemCurrent item on first render when uncontrolled.
onChange(value: string) => void-Called with the value of the item the user picked.
linkComponentElementType'a'Renders every item link, e.g. the app's router link.
classNamestring''Extra classes on the rail.
surfacebooleantrueDraw the rail on its own card. Off: transparent, fills its parent's height.

About Icon Rail

Icon Rail is the slim navigation of apps with only a few sections. Each destination is an icon button; the active one sits on a soft pill that slides to whichever icon you pick. A single tooltip labels the icons: it opens after a short delay, then glides from icon to icon and swaps its text through a quick blur instead of hiding and reappearing. Icons can carry a dot for unread items, a second group is pinned to the bottom, and slots above and below take a logo or an avatar. It can sit on its own glass card or stay transparent and fill the height of an app shell.

What's included

  • Active pill that slides between icons
  • One tooltip that glides between icons
  • Dots for unread items
  • Bottom group and header / footer slots
  • Glass card or transparent full-height rail
  • Controlled and uncontrolled value
  • Light and dark look, respects reduced motion
Type
Animated React sidebar component
Library
Components · Sidebar
Stack
Next.js, React, Tailwind CSS, Framer Motion
Added
2026-11-24
Install
npx motionsnack add icon-rail