mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-28 07:04:20 +00:00
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
import { Button } from "@/styles/base-nova/ui/button"
|
|
import {
|
|
Field,
|
|
FieldContent,
|
|
FieldDescription,
|
|
FieldGroup,
|
|
FieldLabel,
|
|
FieldLegend,
|
|
FieldSet,
|
|
} from "@/styles/base-nova/ui/field"
|
|
import { Input } from "@/styles/base-nova/ui/input"
|
|
|
|
export function FieldResponsive() {
|
|
return (
|
|
<div className="w-full max-w-lg">
|
|
<form>
|
|
<FieldSet>
|
|
<FieldLegend>Profile</FieldLegend>
|
|
<FieldDescription>Fill in your profile information.</FieldDescription>
|
|
<FieldGroup>
|
|
<Field orientation="responsive">
|
|
<FieldContent>
|
|
<FieldLabel htmlFor="name">Name</FieldLabel>
|
|
<FieldDescription>
|
|
Provide your full name for identification
|
|
</FieldDescription>
|
|
</FieldContent>
|
|
<Input id="name" placeholder="Evil Rabbit" required />
|
|
</Field>
|
|
<Field orientation="responsive">
|
|
<Button type="submit">Submit</Button>
|
|
<Button type="button" variant="outline">
|
|
Cancel
|
|
</Button>
|
|
</Field>
|
|
</FieldGroup>
|
|
</FieldSet>
|
|
</form>
|
|
</div>
|
|
)
|
|
}
|