CoolFace
Apppublic

FLASHback1/bingo

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
textarea.tsx25 linesDownload Raw Back to ui
1import * as React from 'react'2 3import { cn } from '@/lib/utils'4 5export interface TextareaProps6  extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}7 8const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(9  ({ className, ...props }, ref) => {10    return (11      <textarea12        className={cn(13          'flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background 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',14          className15        )}16        ref={ref}17        {...props}18      />19    )20  }21)22Textarea.displayName = 'Textarea'23 24export { Textarea }25