22 lines
477 B
TypeScript
22 lines
477 B
TypeScript
import * as React from 'react'
|
|
|
|
import { twMerge } from 'tailwind-merge'
|
|
|
|
export interface TextareaProps
|
|
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
|
|
|
|
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
|
|
({ className, ...props }, ref) => {
|
|
return (
|
|
<textarea
|
|
className={twMerge('textarea-input', className)}
|
|
ref={ref}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
)
|
|
Textarea.displayName = 'Textarea'
|
|
|
|
export { Textarea }
|