PyraUI logo
PyraUI
Docs
Home Docs Components Roadmap Playground GitHub
Launch Playground
Playground
Browse Components 70
Accordion Alert Animated Chart Autocomplete Avatar Avatar Group Badge Badge Card Breadcrumbs Button Card Carousel Chart Color Picker Conditional Form Connections Widget Countdown DatePicker Diff Dock Drawer File Upload Filter Panel Gantt Chart Gauge Grid Heatmap Hero Input Installation Introduction Kanban Board Kbd Lightbox Link List Live Chat Live Data Table Live Feed Map Masonry Grid Mockup Modal Multi-Select Navbar Password Strength Meter Progress Rating Resizable Panels Rich Text Editor Select Signature Pad Skeleton Skeleton Layout Slider Sortable List Stats Stepper Swap Table Tabs Tag Input Theme Config Theme Switch Timeline Toast Usage User Profile Card Video Player Wizard

Tabs

Tabs component for navigation between different content sections.

Examples

Content for tab 1
Content for tab 2
Content for tab 3

<.tabs>
  <:tab id="tab-1" label="Tab 1" active={true}>Content 1</:tab>
  <:tab id="tab-2" label="Tab 2">Content 2</:tab>
</.tabs>
        

Props

Prop Type Default Description
id string "tabs" Unique identifier for tabs container
tab (slot) slot required Tab items with id, label, and active attributes

We can't find the internet

Attempting to reconnect

Something went wrong!

Attempting to reconnect