Back

Floating Input

Satu Visual ComponentNew

A text input whose label floats up when focused or filled.

Installation

Add it with the CLI:

Terminal

$

Or open the Code tab above and copy it in manually — it relies on the standard cn() helper from @/lib/utils.

Usage

Pass a label. Forwards all native input props (type, name, required…).

Props

PropTypeDefaultDescription
labelstring—Floating label text.
classNamestring—Extra classes.
...propsInputHTMLAttributes—Native <input> props.