SaaS Label
SaaS-specific form label
SaaSPrimitives
Overview
The Label component renders an accessible label that pairs with form controls via htmlFor. It supports a required prop that displays a visual asterisk indicator and automatically adjusts styling when its associated control is disabled.
Usage
import { Label } from "@leanicon/web-builder-library/saas";
<Label htmlFor="email">Email address</Label>;Variants
Default
Dark
Required
With HtmlFor
Required With Input
Disabled Peer
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
required | boolean | — | No | If true, shows a required indicator (asterisk). |
asChild | boolean | — | No |