Tabs
A set of layered sections with the same height of content—known as tab panels—that are displayed one at a time.
Made by imskyleenInstallation
Usage
With Highlight
Without Highlight
API Reference
Tabs
Prop | Type | Default |
---|---|---|
defaultValue? | string | - |
value? | string | - |
onValueChange? | (value: string) => void | - |
...props? | React.ComponentProps<"div"> | - |
TabsHighlight
Animate UI API Reference - HighlightProp | Type | Default |
---|---|---|
transition? | Transition | { type: "spring", stiffness: 200, damping: 25 } |
TabsHighlightItem
Animate UI API Reference - HighlightItemTabsList
Prop | Type | Default |
---|---|---|
...props? | React.ComponentProps<"div"> | - |
TabsTrigger
Prop | Type | Default |
---|---|---|
value | string | - |
asChild? | boolean | false |
...props? | HTMLMotionProps<"button"> | - |
TabsContents
Prop | Type | Default |
---|---|---|
transition? | Transition | { type: "spring", stiffness: 300, damping: 32, bounce: 0, restDelta: 0.01 } |
...props? | React.ComponentProps<"div"> | - |
TabsContent
Prop | Type | Default |
---|---|---|
value | string | - |
asChild? | boolean | false |
...props? | HTMLMotionProps<"div"> | - |