Input

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

Installation

npx chilli@latest add input

Default

helper text

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
labelstringLabel text displayed above the input.
placeholderstringPlaceholder text for the input.
type"text" | "password" | "email" | "number""text"The type of the input.
errorstringError message displayed below the input.
helperTextstringHelper text displayed below the input.
disabledbooleanfalseWhether the input is disabled.
valuestringControlled value.
onChange(e: ChangeEvent) => voidChange event handler.