Files
shadcn-ui/apps/v4/examples/base/field-input.tsx
shadcn 62aef1117f fix
2026-01-08 21:27:27 +04:00

34 lines
946 B
TypeScript

import {
Field,
FieldDescription,
FieldGroup,
FieldLabel,
FieldSet,
} from "@/examples/base/ui/field"
import { Input } from "@/examples/base/ui/input"
export default function FieldInput() {
return (
<div className="w-full max-w-md">
<FieldSet>
<FieldGroup>
<Field>
<FieldLabel htmlFor="username">Username</FieldLabel>
<Input id="username" type="text" placeholder="Max Leiter" />
<FieldDescription>
Choose a unique username for your account.
</FieldDescription>
</Field>
<Field>
<FieldLabel htmlFor="password">Password</FieldLabel>
<FieldDescription>
Must be at least 8 characters long.
</FieldDescription>
<Input id="password" type="password" placeholder="••••••••" />
</Field>
</FieldGroup>
</FieldSet>
</div>
)
}