Skip to Content
Actions & Basics@hacline/ui/label

Label

Names a control and forwards clicks to its associated input or control.

Usage

Click "Device name" to focus the input. Inside a Field with helper text or validation messages, use FieldLabel to establish complete associations.

Associating with a Switch

Associate the label with a switch ID using htmlFor. Clicking the label text also toggles the switch.

Props

Prop

Type

View parts and state attributes in UI SDK.