Label

Accessible label component for form elements.

Installation

npx popcn add label

Basic Usage

With Input

With Checkbox

Checkbox Label

With Required Indicator

Required Field

Disabled State

Disabled Field

Props

PropTypeDefaultDescription
htmlForstring-The id of the form element the label is associated with
classNamestring-Additional CSS classes