Files
pdfer/components/TextAreaInput.tsx
2021-02-25 00:35:03 +01:00

23 lines
388 B
TypeScript

import React from 'react'
export default function TextAreaInput({
text,
name,
placeholder,
onchange,
value,
}: {
text: string
name: string
placeholder: string
onchange: () => void
value: string
}) {
return (
<label>
{text}
<textarea className={name} placeholder={placeholder} onChange={onchange.bind(null, name)} value={value} />
</label>
)
}