CoolFace
Apppublic

FLASHback1/bingo

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
input.tsx26 linesDownload Raw Back to ui
1import * as React from 'react'2 3import { cn } from '@/lib/utils'4 5export interface InputProps6  extends React.InputHTMLAttributes<HTMLInputElement> {}7 8const Input = React.forwardRef<HTMLInputElement, InputProps>(9  ({ className, type, ...props }, ref) => {10    return (11      <input12        type={type}13        className={cn(14          'flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background 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 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',15          className16        )}17        ref={ref}18        {...props}19      />20    )21  }22)23Input.displayName = 'Input'24 25export { Input }26