Field
Ties a control to its label, hint and error.
Choose a unique username for your account.
Install and use
The first command adds the component and the Mine theme, the second adds this example. Render <Mine> once near your root for the skin, sounds and narrator.
"use client"
import { Field, FieldDescription, FieldLabel } from "@/components/ui/field"
import { Input } from "@/components/ui/input"
function Example() {
return (
<div data-slot="stack">
<Field>
<FieldLabel>Username</FieldLabel>
<Input name="username" placeholder="hollis" autoComplete="username" />
<FieldDescription>
Choose a unique username for your account.
</FieldDescription>
</Field>
</div>
)
}
export { Example }