Murasaki
Components

Label

Renders an accessible label associated with controls.

Usage

import { Label } from "@murasakijs/ui";
<Label htmlFor="email">Email</Label>

API Reference

Props

Label renders React Aria's accessible label primitive and forwards native <label> attributes. Pair it with a control via matching htmlFor / id, and clicking the label focuses the control.

Improve this page on GitHub

On this page