Components

Input

Displays a form input field or a component that looks like an input field, input groups, number input spinners, date input, date time input, time inputs, etc.

Loading

Installation

pnpm dlx shadcn@latest add @toui/input

Examples

Disabled

Loading

Readonly

Loading

Addon

Loading

Icon

Loading

File

Loading

Date

Loading

Time

Loading

Date & Time

Loading

Copy to clipboard

Loading

Clear button

Loading

Size

Loading

Form

Loading

API Reference

This component extends the native HTML <input> element with additional styling and size variants.

Input

This component is a custom implementation that extends the native HTML <input> element with the following custom props:

PropTypeDefault
variant enum "md"
className string

Credits

We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking Accept, you agree to our use of cookies.
Learn more.