Date picker

Installation

npx shadcn@latest add https://ui.timkit.cn/r/date-picker.json

Usage

import { Datepicker } from "@/components/ui/date-picker"

Examples

Calendar Date Picker · Date picker
Loading preview...
Calendar Date Picker · Date range picker
Loading preview...
Calendar Date Picker · Date picker
Loading preview...
Calendar Date Picker · Date range picker
Loading preview...

Structured API

Component

date-picker

Logic

zag / date-picker

Runtime Frameworks

ReactVueWeappHTML

Supported Platforms

Web
Configuration
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
zagState and interaction provider used by this component.
logic.machine
string
date-pickerUnderlying 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
@timui/core, @zag-js/popper, @zag-js/reactRuntime package dependencies required by this registry item.
optionalPeerDependencies
array
@internationalized/dateOptional peer dependencies used by this registry item.
registryDependencies
array
calendar, popover, buttonDependent Timkit registry components/hook entries.
Props
PropTypeDefaultDescription
mode
enum (single | range)
singleThe selection mode.
placeholder
string
-The button placeholder.
numberOfMonths
number
1The number of months to display.
Slots
PropTypeDefaultDescription
default
slot
-Default slot content rendered inside the component root.
Parts
PropTypeDefaultDescription
root*
root
-The date picker container
trigger
part
-The toggle button
content
part
-The calendar popover content
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.

Date picker

Installation

npx shadcn@latest add https://ui.timkit.cn/r/date-picker.json

Usage

import { Datepicker } from "@/components/ui/date-picker"

Examples

Calendar Date Picker · Date picker
Loading preview...
Calendar Date Picker · Date range picker
Loading preview...
Calendar Date Picker · Date picker
Loading preview...
Calendar Date Picker · Date range picker
Loading preview...

Structured API

Component

date-picker

Logic

zag / date-picker

Runtime Frameworks

ReactVueWeappHTML

Supported Platforms

Web
Configuration
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
zagState and interaction provider used by this component.
logic.machine
string
date-pickerUnderlying 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
@timui/core, @zag-js/popper, @zag-js/reactRuntime package dependencies required by this registry item.
optionalPeerDependencies
array
@internationalized/dateOptional peer dependencies used by this registry item.
registryDependencies
array
calendar, popover, buttonDependent Timkit registry components/hook entries.
Props
PropTypeDefaultDescription
mode
enum (single | range)
singleThe selection mode.
placeholder
string
-The button placeholder.
numberOfMonths
number
1The number of months to display.
Slots
PropTypeDefaultDescription
default
slot
-Default slot content rendered inside the component root.
Parts
PropTypeDefaultDescription
root*
root
-The date picker container
trigger
part
-The toggle button
content
part
-The calendar popover content
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.