mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 08:42:08 +10:00
19 lines
641 B
JavaScript
19 lines
641 B
JavaScript
import React from 'react';
|
|
|
|
const TextArea = ({ label, placeholder, value, onChange, className, rows = 5 }) => (
|
|
<div className={`w-full flex flex-col ${className}`}>
|
|
<label className="uppercase tracking-wide text-gray-600 text-xs font-semibold mb-2">
|
|
{label}
|
|
</label>
|
|
<textarea
|
|
className="appearance-none block leading-7 w-full bg-gray-200 text-gray-800 border border-gray-200 rounded py-3 px-4 focus:outline-none focus:bg-white focus:border-gray-500"
|
|
rows={rows}
|
|
value={value}
|
|
onChange={e => onChange(e.target.value)}
|
|
placeholder={placeholder}
|
|
/>
|
|
</div>
|
|
);
|
|
|
|
export default TextArea;
|