Component
Label
Give form controls a visible, clickable name while preserving the native label relationship.
Interactive preview
Usage
Import the component entry and start with its smallest complete example.
Import
import { Label } from "@chitrank2050/monoline-ui/label"Basic usage
<Label htmlFor="project-name">Project name</Label>
<Input id="project-name" placeholder="Monoline UI" />Usage guidance
Choose the component for its interaction model and semantics before customizing its appearance.
Label gives a form control a visible name and lets pointer users focus or activate that control from its text.
The text is only a heading, helper copy, or a visual caption for content that is not a form control.
Set htmlFor to the associated control ID unless the control is nested. Keep the visible wording specific and do not rely on placeholder text as the label.
This component needs browser JavaScript for state or browser APIs.
API reference
Props, slots, and callbacks available on this component.
Design tokens
Theme variables this component reads for color, spacing, and motion.
Implementation
The source used by the example above, including any state it needs.
<Label htmlFor="project-name">Project name</Label>
<Input id="project-name" placeholder="Monoline UI" />Related documentation
Compare related components or review the package and theme setup.