Input
v1.0.0
Form
A flexible input component with various styles and validation states.
Dependencies
@radix-ui/react-slot
Installation
Add this component to your project
CLI Installation
npx shadcn@latest add https://ui.authmate.xyz/registry/input.jsonManual Installation
// Copy the input component from the registryProps
Component properties and their types
typestring
default: 'text'
The input type (text, email, password, etc.)
placeholderstring
default: undefined
Placeholder text for the input
disabledboolean
default: false
Whether the input is disabled
errorboolean
default: false
Whether the input has an error state
Examples
2 different usage examples
Basic Input
import { Input } from "@/components/ui/input"
export function InputDemo() {
return (
<div className="space-y-4">
<Input placeholder="Enter your name" />
<Input type="email" placeholder="Enter your email" />
<Input type="password" placeholder="Enter your password" />
<Input placeholder="Disabled input" disabled />
</div>
)
}Registry
View the component registry file
Live Preview
Interactive
2 examples available