Skip to Content
✨ Just dropped my UI Library — still cooking up some magic! Stay tuned & maybe… hire me  or sponsor me 😉 
DocumentationTabs

Tabs

A flexible and accessible tabs component with smooth gliding animations. Features customizable colors and gradients with smooth transitions between tabs.

Install Dependencies

npx
quickcode-ui add Tabs

Default Usage

Default Tabs

Vibe Check

Checking the vibes with a clean, modern interface.

Custom Colors

Each tab trigger can have its own custom color using hex, RGB, or gradient values.

Custom Colors

Design Tools

Create beautiful interfaces with gradient backgrounds.

Premium Gems

Create beautiful glass-morphism effects inspired by modern design trends.

Premium Gems

Ruby Premium

Powerful features with premium support and advanced analytics.

Props

Tabs

PropTypeDefaultDescription
defaultValuestring-The default active tab value
childrenReact.ReactNode-TabsList and TabsContent components
classNamestring-Additional CSS classes for the tabs container

TabsList

PropTypeDefaultDescription
childrenReact.ReactNode-TabsTrigger components
classNamestring-Additional CSS classes for the tabs list

TabsTrigger

PropTypeDefaultDescription
valuestring-Unique identifier for the tab
childrenReact.ReactNode-Content to display in the tab trigger
activeColorstringvar(--primary)Custom color for active state (hex, rgb, gradient)
classNamestring-Additional CSS classes for the tab trigger

TabsContent

PropTypeDefaultDescription
valuestring-Tab value that this content corresponds to
childrenReact.ReactNode-Content to display when tab is active
classNamestring-Additional CSS classes for the tab content

Features

  • Smooth Gliding Animation: Beautiful sliding background that flows from tab to tab with framer-motion
  • Custom Colors: Support for hex, RGB, gradients, and any CSS color format
  • Keyboard Accessible: Full keyboard navigation support with proper ARIA labels
  • Context-Based State: Uses React Context for clean state management
  • Responsive Design: Adapts beautifully to different screen sizes
  • Dark Mode Ready: Built with CSS custom properties for seamless theme switching
  • Missing Content Detection: Automatically shows helpful messages when TabsContent is missing
Last updated on