Skip to main content

Join the Starwind Pro Beta - Get Free Lifetime Access to 100+ Premium Components

Label

Installation

Usage

size

disabled state

API Reference

Label

An accessible label component for form inputs with multiple sizes.

PropTypeDefault
size"sm" | "md" | "lg""md"
forstring-
classstring-
<Label for="input-id" size="md">Label Text</Label>

Changelog

v1.2.0

  • Add data-slot attribute to enable global styling updates

v1.1.0

  • tailwind-variants now implemented. This uses tailwind-merge under the hood to merge Tailwind classes without style conflicts, allowing you to override any existing classes using the “class” prop.