mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 14:08:47 +00:00
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import {
|
|
Field,
|
|
FieldDescription,
|
|
FieldGroup,
|
|
FieldLabel,
|
|
FieldLegend,
|
|
FieldSet,
|
|
} from "@/styles/base-nova/ui/field"
|
|
import { Input } from "@/styles/base-nova/ui/input"
|
|
|
|
export function FieldFieldset() {
|
|
return (
|
|
<FieldSet className="w-full max-w-sm">
|
|
<FieldLegend>Address Information</FieldLegend>
|
|
<FieldDescription>
|
|
We need your address to deliver your order.
|
|
</FieldDescription>
|
|
<FieldGroup>
|
|
<Field>
|
|
<FieldLabel htmlFor="street">Street Address</FieldLabel>
|
|
<Input id="street" type="text" placeholder="123 Main St" />
|
|
</Field>
|
|
<div className="grid grid-cols-2 gap-4">
|
|
<Field>
|
|
<FieldLabel htmlFor="city">City</FieldLabel>
|
|
<Input id="city" type="text" placeholder="New York" />
|
|
</Field>
|
|
<Field>
|
|
<FieldLabel htmlFor="zip">Postal Code</FieldLabel>
|
|
<Input id="zip" type="text" placeholder="90502" />
|
|
</Field>
|
|
</div>
|
|
</FieldGroup>
|
|
</FieldSet>
|
|
)
|
|
}
|