Checkbox

Installation

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

Usage

import { Checkbox } from "@/components/ui/checkbox"

Examples

Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...

Structured API

Component

checkbox

Logic

zag / checkbox

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
checkboxUnderlying 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
checked
boolean
-The controlled checked state.
disabled
boolean
falseWhether the checkbox is disabled.
Events
PropTypeDefaultDescription
onCheckedChange
event
-Callback called when checked state changes.
Slots
PropTypeDefaultDescription
default
slot
-The content of the checkbox
Parts
PropTypeDefaultDescription
root*
root
-The checkbox container
indicator
part
-The visual indicator of the checked state
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.

Checkbox

Installation

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

Usage

import { Checkbox } from "@/components/ui/checkbox"

Examples

Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...
Checkbox · With label
Loading preview...

Structured API

Component

checkbox

Logic

zag / checkbox

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
checkboxUnderlying 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
checked
boolean
-The controlled checked state.
disabled
boolean
falseWhether the checkbox is disabled.
Events
PropTypeDefaultDescription
onCheckedChange
event
-Callback called when checked state changes.
Slots
PropTypeDefaultDescription
default
slot
-The content of the checkbox
Parts
PropTypeDefaultDescription
root*
root
-The checkbox container
indicator
part
-The visual indicator of the checked state
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.