Display UI

Input

A basic field for entering text, numbers, or other user data. Essential for forms, search bars, and interactive interfaces.

Loading...

Installation

npx shadcn@latest add https://display-ui.vercel.app/r/Input

Usage

import { Input } from "@/components/display-ui/Input"
<Input border="primary" type="text" placeholder="Enter Any Text" />

API

Input Props

For Input Component

AttributeTypeDescriptionDefault
border"primary" | "success" | "warning" | "danger" | "none"Controls the focus ring style and color of the input field."primary"
classNamestringAdditional CSS classes to customize the input styling.-

Examples

Text

Email

Password

Number

Credits

This component is inspired by Rehman Kalawant Design Shared On Github.

On this page