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
API Reference
Tabs
Animate UI API Reference - Tabs PrimitiveProp | Type | Default |
---|---|---|
defaultValue? | string | - |
value? | string | - |
onValueChange? | (value: string) => void | - |
...props? | React.ComponentProps<"div"> | - |
TabsList
Animate UI API Reference - TabsList PrimitiveProp | Type | Default |
---|---|---|
...props? | React.ComponentProps<"div"> | - |
TabsTrigger
Animate UI API Reference - TabsTrigger PrimitiveProp | Type | Default |
---|---|---|
value | string | - |
asChild? | boolean | false |
...props? | HTMLMotionProps<"button"> | - |
TabsContents
Animate UI API Reference - TabsContents PrimitiveProp | Type | Default |
---|---|---|
transition? | Transition | { type: "spring", stiffness: 300, damping: 32, bounce: 0, restDelta: 0.01 } |
...props? | React.ComponentProps<"div"> | - |
TabsContent
Animate UI API Reference - TabsContent PrimitiveProp | Type | Default |
---|---|---|
value | string | - |
asChild? | boolean | false |
...props? | HTMLMotionProps<"div"> | - |
Credits
- Credit to shadcn/ui for style inspiration.