ファイル
btrc-hub/frontend/src/components/common/TextArea.tsx
T
2025-09-04 23:55:09 +09:00

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}/>))