Input

A text input field component with built-in support for labels, placeholders, validation states, and icons.

Installation

npx chilli@latest add input

Default

Used to personalize nearby actions.

We'll never share your email.

https://

Enter your website URL

Username must be at least 3 characters.

States

Component preview

Add your Input component here

API Reference

Input

PropTypeDefaultDescription
labelstring—Label text displayed above the input.
placeholderstring—Placeholder text for the input.
type"text" | "password" | "email" | "number""text"The type of the input.
errorstring—Error message displayed below the input.
helperTextstring—Helper text displayed below the input.
disabledbooleanfalseWhether the input is disabled.
valuestring—Controlled value.
onChange(e: ChangeEvent) => void—Change event handler.