Skip to main content

Starwind UI v1.12 is now available!

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.