Vesture
Get started

Inputs

Label

A form label with an optional required marker, meant to pair with Input, Select, Textarea, Checkbox, Radio, or Switch.

Label

Preview

Usage

tsx
import { Label, Input } from "@vesture/react";

<Label htmlFor="email" required>Email</Label>
<Input id="email" type="email" />

Props

PropTypeDefaultDescription
requiredbooleanAppends an aria-hidden asterisk.
disabledbooleanSets data-disabled for styling.
...restLabelHTMLAttributes<HTMLLabelElement>Spread onto the <label> — htmlFor, etc.