zynactradocs

Label

The accessible name for a form control.

Usage

import { Label } from "@zynactra/ui/label"
<Label htmlFor="email">Work email</Label>
<Input id="email" type="email" />

Guidelines

  • Every control gets a visible label. Placeholders are examples, not labels.
  • Sentence case, no colon.
  • Inside a form, prefer Field, which wires up the label, description and error for you.
Edit on GitHub

On this page