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
Prop | Type | Default | Description |
---|---|---|---|
defaultValue | string | - | The default active tab value |
children | React.ReactNode | - | TabsList and TabsContent components |
className | string | - | Additional CSS classes for the tabs container |
TabsList
Prop | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | TabsTrigger components |
className | string | - | Additional CSS classes for the tabs list |
TabsTrigger
Prop | Type | Default | Description |
---|---|---|---|
value | string | - | Unique identifier for the tab |
children | React.ReactNode | - | Content to display in the tab trigger |
activeColor | string | var(--primary) | Custom color for active state (hex, rgb, gradient) |
className | string | - | Additional CSS classes for the tab trigger |
TabsContent
Prop | Type | Default | Description |
---|---|---|---|
value | string | - | Tab value that this content corresponds to |
children | React.ReactNode | - | Content to display when tab is active |
className | string | - | 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