Label

Renders an accessible label associated with form controls.

Project names can only contain letters, numbers, and hyphens

✓ Valid project name

Installation

CLI

Install the component using the StarUI CLI:

star add label

Examples

Interactive Label Controls

Labels with interactive elements like visibility toggles

Advanced Patterns

Labels with badges, annotations, and contextual information

Contact support to change regions after deployment

Requires DNS configuration and SSL certificate

Radio & Checkbox Groups

Labels for grouped form controls

Complete Form Layout

Real-world form with various label patterns

Used for repository access and commit attribution

Optional - used for budget planning

API Reference

Props

Prop Type Default Description
fr str | None None ID of the associated form control (sets 'for' attribute)
cls str '' Additional CSS classes for spacing/layout