10 行
310 B
TypeScript
10 行
310 B
TypeScript
import { forwardRef } from 'react'
|
|
|
|
import type { TextareaHTMLAttributes } from 'react'
|
|
|
|
type Props = TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
|
|
|
|
export default forwardRef<HTMLTextAreaElement, Props> (({ ...props }, ref) => (
|
|
<textarea ref={ref} className="rounded border w-full p-2 h-32" {...props}/>))
|