Template
13 lines
564 B
TypeScript
13 lines
564 B
TypeScript
import * as React from 'react';
|
|
import { cn } from '@/lib/utils';
|
|
|
|
export function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
|
|
return (
|
|
<input
|
|
type={type}
|
|
className={cn('h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30', className)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|