Profile content goes here
Underline Tabs Component
A stylish underline tabs component with smooth animations, built with Framer Motion.
- Clean underline animation when switching between tabs
- Support for icons in tab triggers
- Fully customizable content
- Simple data-driven API
Installation
The UnderlineTabs component is part of our UI library. You can import it directly from the components directory.
Usage
Here is how to use underline tabs in your project:
React TSX
React TSX
Examples
Basic Underline Tabs
Tab 1 Content
This is the content for the first tab.
Tabs with Icons
Profile
View and edit your profile information.
Custom Styled Tabs
Messages
Your recent messages and conversations.
API Reference
Tab Object
Each tab is defined by a Tab object with the following properties:
Property | Type | Description |
---|---|---|
id | string | Unique identifier for the tab |
label | string | Label text displayed on the tab |
icon | LucideIcon | Optional Lucide icon to display next to the label |
content | ReactNode | Content to render when the tab is active |
UnderlineTabs Props
Prop | Type | Default | Description |
---|---|---|---|
tabs | Tab[] | Required | Array of tab objects |
defaultTab | string | First tab's ID | ID of the tab to show by default |
className | string | '' | Additional CSS classes |