Label
The Label component is a simple styled wrapper around the native HTML label element.
The Label component is a simple styled wrapper around the native HTML label element.
Usage
Use the Label component to wrap a form input element. The htmlFor
prop is used to associate the label with the input element.
tsimport { Label } from '@components/ui/Label';
const MyComponent = () => (
<Label htmlFor="my-input">My Label</Label>
);