Label

An accessible label for form controls.

Usage

import { Label } from '@epilot/spark-ui/label'
<Label htmlFor="email">Email</Label>

Examples

Paired with a control

API Reference

Label extends React.LabelHTMLAttributes<HTMLLabelElement>; pass htmlFor to associate it with a form control.

On this page