CodeHubOrg / codehub-mentorships

CodeHub Mentorship platform - built with Laravel and React
3 stars 0 forks source link

Component Library - textarea #16

Closed fourstacks closed 4 years ago

fourstacks commented 4 years ago

We'll need a simple textarea component.

This should accept a few props:

Styling should be informed by the textarea example found in this TailwindUI form layout:

https://tailwindui.com/components/application-ui/forms/form-layouts

Here's the static HTML from tailwindUI:

<div>
    <div class="max-w-lg flex rounded-md shadow-sm">
        <textarea id="about" rows="3" class="form-textarea block w-full transition duration-150 ease-in-out sm:text-sm sm:leading-5"></textarea>
    </div>
    <p class="mt-2 text-sm text-gray-500">Write a few sentences about yourself.</p>
</div>