Components
Label
Use for field titles, form naming, and accessible input labeling
Label
Label gives form controls clear names.
Import
import { Label } from "@downcity/ui";Basic Example
import { Input, Label } from "@downcity/ui";
export function NameField() {
return (
<div className="flex flex-col gap-2">
<Label htmlFor="agent-name">Agent Name</Label>
<Input id="agent-name" />
</div>
);
}Usage Notes
- Point
htmlForto the target controlid - Use it inline with
Checkbox - Keep
Labelfocused on semantics, not complex layout