Components

Label

Associates visible text with a form control.

tsx
import Label from '@precursor/label';

Example

tsx
import Label from '@precursor/label';

export default function Example() {
    return (
        <>
            <Label htmlFor="project-name">Project name</Label>
            <input id="project-name" />
        </>
    );
}

Props

Label props
PropTypeDefaultNotes
childrenRequiredReactNode——
htmlForstring——
classNamestring——