19 lines
611 B
TypeScript
19 lines
611 B
TypeScript
import { type ComponentProps } from 'react'
|
|
import { cn } from '@/lib'
|
|
|
|
export function Input({ type = 'text', className, ...props }: ComponentProps<'input'>) {
|
|
return (
|
|
<input
|
|
type={type}
|
|
className={cn(
|
|
'flex h-10 w-full rounded-xl border border-input bg-background px-3.5 py-2 text-sm transition-all',
|
|
'placeholder:text-muted-foreground',
|
|
'focus-visible:outline-none focus-visible:border-brand-600 focus-visible:ring-1 focus-visible:ring-brand-600',
|
|
'disabled:cursor-not-allowed disabled:opacity-50',
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|