返回 AiToEarn
textarea.tsx
根目录 / project / aitoearn-web / src / components / ui / textarea.tsx
1 import * as React from 'react'
2
3 import { cn } from '@/utils/className'
4
5 const Textarea = React.forwardRef<HTMLTextAreaElement, React.ComponentProps<'textarea'>>(
6 ({ className, ...props }, ref) => {
7 return (
8 <textarea
9 ref={ref}
10 className={cn(
11 'flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
12 className,
13 )}
14 {...props}
15 />
16 )
17 },
18 )
19 Textarea.displayName = 'Textarea'
20
21 export { Textarea }
22
22 lines Plain Text