Files
danak-admin/src/components/Textarea.tsx
T
2024-12-29 16:27:07 +03:30

25 lines
564 B
TypeScript

import { FC, InputHTMLAttributes } from 'react'
type Props = {
label: string,
} & InputHTMLAttributes<HTMLTextAreaElement>
const Textarea: FC<Props> = (props: Props) => {
return (
<div className='w-full relative'>
<label className='text-sm'>
{props.label}
</label>
<textarea
className='border border-border w-full rounded-xl px-4 py-3 min-h-[100px] mt-1 text-xs'
{...props}
>
</textarea>
</div>
)
}
export default Textarea