shadcn.io is an independent project built on shadcn/ui
Display Name and the field share one row. The label keeps a fixed width. The placeholder is John D.
It fits a settings row where labels should line up. A name with no row spacing is a Label. Ark UI on Solid does not move this label above the field.
Installation
Anatomy

Usage
<Field class="max-w-md" orientation="horizontal">
<FieldLabel class="w-32">Display Name</FieldLabel>
<Input placeholder="John D." type="text" />
</Field>FAQ
How do the label and input share a row?
orientation is horizontal on Field, so Display Name and the input sit side by side. Field sets data-orientation to horizontal.
Why does the label have a fixed width?
w-32 on FieldLabel holds the label at a fixed width, so the input starts at the same inset. The field itself is capped with max-w-md.
How does Display Name connect to the input?
FieldLabel names the input. Field connects the two for you, with no ids to write. The label text is Display Name.
What does the input accept?
type is text. The placeholder is John D., and it clears once someone types.
API Reference
Field
Sets orientation="horizontal". The rest is on the Field page.
Input
Sets placeholder="John D." and type="text". The rest is on the Input page.





