Skip to main content

Starwind UI v1.5.0 is now available!

Input

Installation

Usage

size

disabled

with type

API Reference

PropTypeDefault
size"sm" | "md" | "lg""md"

The component also accepts all standard HTML attributes for the <input> element.

Changelog

v1.1.1

  • Add eslint disable comment for allowing the label to not have an associated control (this is user responsibility)
  • Adjust component to use type VariantProps from tailwind-variants. This provides greater type safety and cleans up component frontmatter.

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.