MCPcopy Create free account
hub / github.com/vercel/examples / Input

Function Input

internal/packages/ui/src/input.tsx:4–20  ·  view source on GitHub ↗
({
  children,
  className,
  ...rest
}: InputHTMLAttributes<HTMLInputElement>)

Source from the content-addressed store, hash-verified

2import cn from 'clsx'
3
4export 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

Calls 1

cnFunction · 0.50

Tested by

no test coverage detected