Tabs Sliding Pill
UnlimitedA pill glides between tabs on a shared-layout spring while the panel slides in from the side you moved toward.
tabspilllayoutspringdirection
Installation
Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/tabs-sliding-pill.tsx. This is an Unlimited component, so the CLI needs your API key: set it up once, then install it by name.
Build it with AI
Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.
More tabs
- Tabs Animated Height ContentTabs inside a card that springs to the height of each panel, so short and long content swap without a layout jump.
- Tabs FolderBrowser-style tabs with scooped corners: the active shape slides between tabs, and tabs can be closed or added with layout springs.
- Tabs Scrollable OverflowA tab strip that scrolls when it runs out of room: edge fades and arrow buttons appear only on the side that has more, and the active tab centres itself.
- Tabs Segmented IconsAn icon segmented control whose active segment unfolds its label, driving a task view where the same cards re-flow between list, board, grid and timeline.
- Tabs Underline SpringAn underline that stretches toward the next tab before its tail catches up, with a hover highlight that follows the pointer.
- Tabs Vertical With PreviewVertical feature tabs that auto-advance with a filling rail and swap a drawn product preview, sliding up or down by direction.