profileShare

rasmusjy / roundtable

Read-only snapshot

No repository description.

main default branch 181 files Expires Sep 13, 2026, 9:06 AM
input.tsx 717 bytes
1 import * as React from 'react';
2 import { cn } from '@/lib/utils';
3
4 const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(
5 ({ className, type, ...props }, ref) => (
6 <input
7 type={type}
8 className={cn(
9 'flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50',
10 className,
11 )}
12 ref={ref}
13 {...props}
14 />
15 ),
16 );
17 Input.displayName = 'Input';
18
19 export { Input };
20