Input

Hover CardInput OTP

Labels, hints, validation and icons.

We'll never share your email.

Installation

pnpm add krz-ui

Usage

import { Input } from "krz-ui";
<Input label="Email" placeholder="you@example.com" error={error} hint="We'll never share it." />

API Reference

PropTypeDescription
labelReactNodeField label.
hintReactNodeHelper text under the field.
errorReactNodeError message; marks the field invalid.
size"sm" | "md" | "lg"Field size.
leftIcon / rightIconReactNodeIcons inside the field.
className / style / ref—className and style go on the whole field; ref and native input attributes go to the <input>. See Customization.
classNames{ label?, control?, input?, icon?, message? }Extra classes for inner parts.