Tree

Installation

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

Usage

import { Tree } from "@/components/ui/tree"

Examples

Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Disabled State
Loading preview...
Tree · Clear search
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Navbar · Interactive State
Loading preview...

Structured API

Component

tree

Logic

none

Runtime Frameworks

ReactVueWeappHTML

Supported Platforms

Web
Configuration
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
noneState and interaction provider used by this component.
logic.machine
string
-Underlying state machine identifier when provider is zag.
platforms*
array
WebPlatforms officially supported by this schema.
frameworks*
array
React, Vue, Weapp, HTMLFramework demos/code currently available in registry files.
dependencies
array
@headless-tree/core, @timui/coreRuntime package dependencies required by this registry item.
optionalPeerDependencies
array
lucide-reactOptional peer dependencies used by this registry item.
registryDependencies
array
-Dependent Timkit registry components/hook entries.
Props
PropTypeDefaultDescription
indent
number
20The indentation for children.
Slots
PropTypeDefaultDescription
default
slot
-The tree items
Parts
PropTypeDefaultDescription
root*
root
-The tree container
item
part
-A tree node
label
part
-A node label
dragLine
part
-The drag indicator
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.

Tree

Installation

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

Usage

import { Tree } from "@/components/ui/tree"

Examples

Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Disabled State
Loading preview...
Tree · Clear search
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Tree · Interactive State
Loading preview...
Navbar · Interactive State
Loading preview...

Structured API

Component

tree

Logic

none

Runtime Frameworks

ReactVueWeappHTML

Supported Platforms

Web
Configuration
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
noneState and interaction provider used by this component.
logic.machine
string
-Underlying state machine identifier when provider is zag.
platforms*
array
WebPlatforms officially supported by this schema.
frameworks*
array
React, Vue, Weapp, HTMLFramework demos/code currently available in registry files.
dependencies
array
@headless-tree/core, @timui/coreRuntime package dependencies required by this registry item.
optionalPeerDependencies
array
lucide-reactOptional peer dependencies used by this registry item.
registryDependencies
array
-Dependent Timkit registry components/hook entries.
Props
PropTypeDefaultDescription
indent
number
20The indentation for children.
Slots
PropTypeDefaultDescription
default
slot
-The tree items
Parts
PropTypeDefaultDescription
root*
root
-The tree container
item
part
-A tree node
label
part
-A node label
dragLine
part
-The drag indicator
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.