gc-wing/packages/ui/src/components/TextInput.tsx

19 lines
522 B
TypeScript
Raw Normal View 히스토리

import type { InputHTMLAttributes } from 'react';
import { cn } from '../utils/cn.ts';
type TextInputProps = InputHTMLAttributes<HTMLInputElement>;
export function TextInput({ className, ...props }: TextInputProps) {
return (
<input
className={cn(
'flex-1 rounded-md border border-wing-border bg-wing-card/75 px-2 py-1.5 text-[10px] text-wing-text outline-none',
'placeholder:text-wing-muted/90',
'focus:border-wing-accent',
className,
)}
{...props}
/>
);
}