oks-ui

Forms

FormFieldSet type="datepicker" -- single date or range, with time and presets.

Preview

Type options

Content

Set to make the field show its invalid state.

Appearance

filled = borderless neutral fill at rest (text types); others fall back to bordered.

Layout & positioning

Behavior & states

Props

value / defaultValue

string | { start: string; end: string }

Default:

Controlled / uncontrolled value. YYYY-MM-DD, or YYYY-MM-DDTHH:mm when withTime.

startIcon / endIcon / prefix / suffix

ReactNode

Default:

Adornments on the trigger.

label

ReactNode

Default:

Field label.

description

ReactNode

Default:

Helper text below the control.

error

ReactNode | boolean

Default:

Error message, or true for an invalid state with no message.