Label Input

A clean input field with floating label and password visibility toggle.

The LabelInput is a minimalist form input component featuring a smooth floating label animation and optional password visibility toggle. Inspired by Spell UI's clean design.

Preview

Usage

Installation

$ pnpm dlx shadcn add https://klarden.vercel.app/r/label-input.json

Examples

Color Variants

Login Form

Properties

PropTypeDefaultDescription
labelstring""The floating label text for the input field.
ringColorRingColor"muted"Defines the focus ring color. Options: muted, primary, secondary, destructive, red, blue, green, yellow, purple, pink, orange, cyan, indigo, violet, rose, amber, lime, emerald, sky, slate, fuchsia.
typestring"text"HTML input type (text, email, password, etc.). Password type shows visibility toggle.
placeholderstring""Placeholder text shown when input is empty and not focused.
containerClassNamestringAdditional CSS classes for the container wrapper.
classNamestringAdditional CSS classes for the input element.