Tabs

Installation

npx shadcn@latest add https://ui.timkit.cn/r/tabs.json

Usage

import { Tabs } from "@/components/ui/tabs"

Examples

Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...

Structured API

Component

tabs

Logic

zag / tabs

Runtime Frameworks

ReactVueWeappHTML

Supported Platforms

WebWeChat Mini Program
Configuration
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
zagState and interaction provider used by this component.
logic.machine
string
tabsUnderlying state machine identifier when provider is zag.
platforms*
array
Web, WeChat Mini ProgramPlatforms officially supported by this schema.
frameworks*
array
React, Vue, Weapp, HTMLFramework demos/code currently available in registry files.
dependencies
array
@timui/core, @zag-js/reactRuntime package dependencies required by this registry item.
optionalPeerDependencies
array
-Optional peer dependencies used by this registry item.
registryDependencies
array
use-machineDependent Timkit registry components/hook entries.
Props
PropTypeDefaultDescription
value
string
-The controlled value of the tab to activate.
defaultValue
string
-The default active tab value.
orientation
enum (horizontal | vertical)
horizontalThe orientation of the tabs.
Events
PropTypeDefaultDescription
onValueChange
event
-Event handler called when the value changes.
Slots
PropTypeDefaultDescription
default
slot
-The tabs list and content
Parts
PropTypeDefaultDescription
root*
root
-The tabs container
list
part
-The tab list
trigger
part
-The tab trigger
content
part
-The tab content panel
This API reference is generated from `/packages/core` component schemas to keep React/Vue/Weapp docs consistent.

Extended notes are not available for this component yet.

Tabs

Installation

npx shadcn@latest add https://ui.timkit.cn/r/tabs.json

Usage

import { Tabs } from "@/components/ui/tabs"

Examples

Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...
Tabs · Basic tabs
Loading preview...

Structured API

Component

tabs

Logic

zag / tabs

Runtime Frameworks

ReactVueWeappHTML

Supported Platforms

WebWeChat Mini Program
Configuration
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
zagState and interaction provider used by this component.
logic.machine
string
tabsUnderlying state machine identifier when provider is zag.
platforms*
array
Web, WeChat Mini ProgramPlatforms officially supported by this schema.
frameworks*
array
React, Vue, Weapp, HTMLFramework demos/code currently available in registry files.
dependencies
array
@timui/core, @zag-js/reactRuntime package dependencies required by this registry item.
optionalPeerDependencies
array
-Optional peer dependencies used by this registry item.
registryDependencies
array
use-machineDependent Timkit registry components/hook entries.
Props
PropTypeDefaultDescription
value
string
-The controlled value of the tab to activate.
defaultValue
string
-The default active tab value.
orientation
enum (horizontal | vertical)
horizontalThe orientation of the tabs.
Events
PropTypeDefaultDescription
onValueChange
event
-Event handler called when the value changes.
Slots
PropTypeDefaultDescription
default
slot
-The tabs list and content
Parts
PropTypeDefaultDescription
root*
root
-The tabs container
list
part
-The tab list
trigger
part
-The tab trigger
content
part
-The tab content panel
This API reference is generated from `/packages/core` component schemas to keep React/Vue/Weapp docs consistent.

Extended notes are not available for this component yet.