Home Components Tabs
React Tabs Components
26 free React tabs built with Tailwind CSS and shadcn/ui conventions. Copy the code or install with the shadcn CLI. Great for animated, underline, pill, and vertical tabs.
Tabs 1 : Segmented tabs on a muted rounded track where the active tab lifts onto a white pill.Tabs 2 : Outlined tab track where the active tab fills solid with the primary color.Tabs 3 : Pill-shaped tab bar with icons whose labels hide on mobile, leaving icon-only tabs.Tabs 4 : Horizontally scrollable pill tabs with a small numeric count badge beside each label.Tabs 5 : Settings tabs with stacked icons and uppercase labels above a titled content panel.Tabs 6 : Analytics tabs with a count badge stacked above each label and a metric heading below.Tabs 7 : Round icon-only tabs that show the section name in a tooltip on hover.Tabs 8 : Uppercase pill tabs that turn solid indigo when active, with an italic indigo heading.Tabs 9 : Pricing tier tabs with a solid primary active pill and a dashed bordered content card.Tabs 10 : Uppercase tabs that gain a thin outline border when active, with a breadcrumb-style heading.Tabs 11 : Underline tabs with large icons above labels and a dashed card showing operational metrics.Tabs 12 : Underline tabs with an icon and uppercase label, active tab tinted in the primary color.Tabs 13 : Folder-style tabs with flat bottoms and icon labels over a bordered content card.Tabs 14 : Scrollable category chip tabs with icons, sliding content in from the right on change.Tabs 15 : Vertical tabs with a left rail line that animates in beside the active item.Tabs 16 : Vertical tabs on a muted panel beside an indigo card with a Deploy Service button.Tabs 17 : Vertical tabs with emerald highlights beside a doctor card with Book Session and View Profile actions.Tabs 18 : Vertical task board tabs with colored count chips and a queue card with item totals.Tabs 19 : Vertical travel tabs with an amber left border and a glowing card with an Explore button.Tabs 20 : Vertical tabs with a rose left border beside a now playing card with a progress bar.Tabs 21 : Vertical icon-only tabs with side tooltips beside documentation text with an accent rule.Tabs 22 : Vertical changelog tabs with git icons that switch between release notes bullet lists.Tabs 23 : Vertical inbox tabs with unread count badges and a message timeline with avatar initials.Tabs 24 : Vertical analytics tabs showing a stat grid with green, red or neutral trend arrows.Tabs 25 : Team tabs listing members with online, busy or offline dots and hover action buttons.Tabs 26 : Underline product detail tabs that show specification rows as label and value pairs.
About React Tabs Components React tabs switch between related panels of content in the same space, showing one at a time. Watermelon UI tabs are built on the Radix UI Tabs primitive with Tailwind CSS, so arrow keys move between tabs and each panel is linked to its tab for screen readers. Add them with the shadcn CLI, then set defaultValue and give each TabsTrigger and TabsContent a matching value.
When to use it Account or settings pages split into sections. Product pages with description, specs, and reviews. Code examples that switch between languages or package managers. When to use something else Use Collapsible when the content is one optional section to show or hide. Use Pagination when the panels are numbered pages of the same list. Use Select when there are too many options to fit as tabs. Frequently asked questions How do I set the default tab in shadcn tabs? Pass defaultValue to the Tabs root with the value of the tab to show first. To control it, use value and onValueChange.
How do I sync tabs with the URL? Control the tabs with value from a query parameter and update the URL in onValueChange. Users can then share or refresh a link to a specific tab.
How do I make vertical tabs? Set orientation="vertical" on the Tabs root and lay out the list and panels side by side with Tailwind. Up and down arrow keys then move between tabs.
Are inactive tab panels still mounted? No. Radix unmounts inactive TabsContent by default, which resets their state. Pass forceMount and hide inactive panels with CSS if you need to keep their state.
How to use React Tabs Components Start from a React project with Tailwind CSS and shadcn/ui set up. Next.js, Vite, Remix, and Astro all work. Run npx shadcn@latest add https://registry.watermelon.sh/r/tabs-1.json to add the source files to your project. Import it where you need it, then edit the Tailwind classes and design tokens to match your product. Dependencies installed with it: @tabler/icons-react.
The code is yours: it lives in your repository, so there is no runtime package to keep updated. Watermelon UI is free and open source under the MIT license.
More: Free React components , UI library alternatives , guides .