Input

Displays a text field for user input or an element styled to resemble one.

@radix-ui/react-slot

@lucide/react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes-storev2.vercel.app/r/input.json

Examples


Icon

With Label

File

Password

With Button


API Reference

A form field component that displays an input box, optionally with icons, and supports password visibility toggling.

PropTypeDefault
typestring (e.g., text, password)text
iconLeftReact.ReactNode null
iconRightReact.ReactNode null
classNamestring-
asChildbooleanfalse