oks-ui

Forms

FormFieldSet type="text" -- TextField, also covers number/url/search/color/email.

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

type

"text" | "number" | "url" | "search" | "color" | "email"

Default: "text"

Native input type -- all six render through TextField.

placeholder

string

Default:

Placeholder text.

startIcon

ReactNode

Default:

Leading icon.

endIcon

ReactNode

Default:

Trailing icon.

prefix

ReactNode

Default:

Leading affix (text or custom JSX).

suffix

ReactNode

Default:

Trailing affix (text or custom JSX).

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.