chatbot-template/components/ui/input.tsx

23 lines
801 B
TypeScript
Raw Normal View History

2024-11-14 12:16:05 -05:00
import * as React from 'react';
2024-11-14 12:16:05 -05:00
import { cn } from '@/lib/utils';
const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(
({ className, type, ...props }, ref) => {
return (
<input
type={type}
className={cn(
2025-09-09 15:44:07 -04:00
'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
2024-11-15 13:00:15 -05:00
className,
)}
ref={ref}
{...props}
/>
2024-11-14 12:16:05 -05:00
);
2024-11-15 13:00:15 -05:00
},
2024-11-14 12:16:05 -05:00
);
Input.displayName = 'Input';
2024-11-14 12:16:05 -05:00
export { Input };