Tabs
Tabs organize content into switchable panels. Use with the Tab sub-component.
Import
import { Tabs } from "@gumtree/ui/Tabs" ; Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "box" | "border" | "lift" | - | Visual style of the tab bar |
size | "xs" | "sm" | "md" | "lg" | - | Size of the tabs |
children | ComponentChildren | - | Tab items |
Examples
Border Tabs
Tabs with an underline border style.
< Tabs variant = "border" >
< Tab active > Code </ Tab >
< Tab > Issues </ Tab >
< Tab > Pull Requests </ Tab >
</ Tabs > Box Tabs
Tabs with a box/card style.
< Tabs variant = "box" >
< Tab active > Overview </ Tab >
< Tab > Activity </ Tab >
< Tab > Settings </ Tab >
</ Tabs > Lift Tabs
Tabs with a lifted visual effect.
< Tabs variant = "lift" >
< Tab > First </ Tab >
< Tab active > Second </ Tab >
< Tab > Third </ Tab >
</ Tabs >