ortaui

Field

shadcn's Field API: label, control, description and error. In vertical fields the label lives inside the input, above the value.

Installation#

npx shadcn add @ortaui/field

Examples#

Vertical#

We never share it.

Label on top#

Horizontal and groups#

Notifications

API reference#

PropTypeDefaultDescription
orientation"vertical" | "horizontal" | "responsive""vertical"On Field. Layout of label and control.
labelPosition"inset" | "top""inset"On Field. "inset" puts the label inside an Input or Textarea, above the value (vertical only); "top" keeps it above the control.
errors{ message?: string }[]-On FieldError. Alternative to children.
classNamestring-Merged with the component classes via cn().