Skip to main content

Starwind UI v3.0 beta is now available! Check out the new docs and try it out!

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.2

  • Refactor tailwind variants functions into separate variants.ts file

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.