mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-27 06:34:12 +00:00
32 lines
895 B
TypeScript
32 lines
895 B
TypeScript
import {
|
|
Field,
|
|
FieldDescription,
|
|
FieldGroup,
|
|
FieldLabel,
|
|
FieldSet,
|
|
} from "@/styles/base-nova/ui/field"
|
|
import { Input } from "@/styles/base-nova/ui/input"
|
|
|
|
export default function FieldInput() {
|
|
return (
|
|
<FieldSet className="w-full max-w-xs">
|
|
<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>
|
|
)
|
|
}
|