oks-ui

Forms

FormFieldSet type="switch" -- toggle with optional on/off state text.

Preview

Receive product updates and occasional announcements.

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

checked / defaultChecked

boolean

Default:

Controlled / uncontrolled checked state.

checkedText / uncheckedText

ReactNode

Default: "On" / "Off"

Text shown for each state (when showStateText).

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.