Label

Renders an accessible label associated with controls.

Usage

Examples

With checkbox

With switch

Props

PropTypeDefaultDescription
htmlForstring-The id of the element this label is associated with
classNamestring-Additional CSS classes to apply
childrenReactNode-The label text content