shadcn.io is an independent project built on shadcn/ui
Password is the label. Before the field: Must be at least 8 characters long. The field is masked, and the placeholder is a row of asterisks.
Put the rule here when people should read it before they type. A control that can show the password is Password Input. In Svelte, Ark UI does not measure the password.
Installation
Anatomy

Usage
<Field class="max-w-md"><FieldLabel>Password</FieldLabel><FieldDescription>Must be at least 8 characters long.</FieldDescription><Input placeholder="********" type="password" /></Field>FAQ
Why is the rule above the password box?
FieldDescription sits between FieldLabel and Input, so Must be at least 8 characters long is visible before typing. The label still comes first.
How is the password masked?
type is password, so typed characters stay masked. The placeholder is a row of asterisks, and the rule above it stays readable.
How does the Password label connect?
FieldLabel names the input. Field connects the two for you, with no ids to write. The label text is Password.
Is this field horizontal?
No. orientation is unset, so it stays vertical: label, description, then input. max-w-md caps the width.
API Reference
Field
No extra props in this demo. The rest is on the Field page.
Input
Sets placeholder="********" and type="password". The rest is on the Input page.





