/** * Input Variants Demo * Shows all input states */ import React, { useState } from 'react' export default function InputVariantsDemo() { const [value, setValue] = useState('') return (

Input States

{/* Default */}
{/* With Value */}
{/* Error State */}

This field is required

{/* Disabled */}
{/* With Icon */}
🔍
{/* Controlled */}
setValue(e.target.value)} placeholder="Type something..." className="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring" />

Value: {value || '(empty)'}

{/* Textarea */}