mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-28 07:04:20 +00:00
34 lines
946 B
TypeScript
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>
|
|
)
|
|
}
|