mirror of
https://github.com/Noooste/garage-ui.git
synced 2026-08-09 13:09:24 +00:00
bfed48421b
Signed-off-by: Noooste <83548733+Noooste@users.noreply.github.com>
26 lines
852 B
TypeScript
26 lines
852 B
TypeScript
import * as React from 'react';
|
|
import { cn } from '@/lib/utils';
|
|
|
|
export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
|
|
|
|
const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
({ className, type, ...props }, ref) => (
|
|
<input
|
|
type={type}
|
|
ref={ref}
|
|
className={cn(
|
|
'flex h-[38px] w-full rounded-md border border-[var(--input)] bg-[var(--background)] px-3 py-1 text-[15px]',
|
|
'file:border-0 file:bg-transparent file:text-sm file:font-medium',
|
|
'placeholder:text-[var(--muted-foreground)]',
|
|
'focus-visible:outline-none focus-visible:border-[var(--primary)] focus-visible:ring-2 focus-visible:ring-[var(--ring)]',
|
|
'disabled:cursor-not-allowed disabled:opacity-50',
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
)
|
|
);
|
|
Input.displayName = 'Input';
|
|
|
|
export { Input };
|