Skip to content
Drivn logoDrivn

Input

Text input with focus ring and disabled state.

Preview

Installation

npx drivn add input

Usage

1import { Input } from "@/components/ui/input"
2
3export default function Page() {
4 return (
5 <Input
6 type="text"
7 placeholder="Enter your name"
8 />
9 )
10}

Disabled

API Reference

PropTypeDefaultDescription
typestring"text"HTML input type (text, email, password, number, etc.)
placeholderstringPlaceholder text displayed when the input is empty
disabledbooleanfalseDisables the input
classNamestringAdditional CSS classes to apply
...propsInputHTMLAttributesAll standard HTML input attributes are supported