Function
Input
({
children,
className,
...rest
}: InputHTMLAttributes<HTMLInputElement>)
Source from the content-addressed store, hash-verified
| 2 | import cn from 'clsx' |
| 3 | |
| 4 | export const Input = ({ |
| 5 | children, |
| 6 | className, |
| 7 | ...rest |
| 8 | }: InputHTMLAttributes<HTMLInputElement>) => ( |
| 9 | <input |
| 10 | className={cn( |
| 11 | 'px-3 py-1 transition-colors duration-200 bg-background block font-sans text-sm leading-7 w-full text-foreground caret-foreground', |
| 12 | 'rounded-md border border-solid border-accents-2 outline-0 box-border text-ellipsis appearance-none', |
| 13 | 'focus:border-accents-5 active:border-accents-5', |
| 14 | className |
| 15 | )} |
| 16 | {...rest} |
| 17 | > |
| 18 | {children} |
| 19 | </input> |
| 20 | ) |
Callers
nothing calls this directly
Tested by
no test coverage detected