Label
Compositions
Section titled “Compositions”label-compositions.tsx
import { Stack } from "@/components/ui/stack"
import { Label } from "@/components/ui/label"
import { Field, FieldLabel } from "@/components/ui/field"
import { Input } from "@/components/ui/input"
export function LabelCompositions() {
return (
<Stack direction="col" className="gap-4 max-w-sm">
<Label>Email</Label>
<Field>
<FieldLabel htmlFor="email">Email</FieldLabel>
<Input id="email" type="email" placeholder="you@example.com" />
</Field>
<Field>
<FieldLabel htmlFor="email-d">Disabled peer</FieldLabel>
<Input id="email-d" placeholder="Disabled" disabled />
</Field>
</Stack>
)
}