CodeHubOrg / codehub-mentorships

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

Component library #2

Open fourstacks opened 4 years ago

fourstacks commented 4 years ago

We will have a number of page layouts in the site that will have one or more common components as dependencies. Rather than duplicating this markup and logic throughout the application, it’s worth spending a little time at the start of the project building our own mini component library.

A lot of the styling side of things is done for us with TailwindUI.

Tailwind UI

You’re free to browse all the components but unless you’ve purchased access you’ll only see a png preview of the component. I’ve purchased access to this library of components and whilst the license allows us to use the library for project I’m not sure if there’s a good way of giving everyone access to the account securely. Therefore, for now at least, if you let me know which components you want the markup for I’ll just copy paste it over to you (or just drop it into an empty component file in the project)

Our own little component library should probably initially encompass the following:

Tailwind UI - form inputs Tailwind UI - dropdowns Tailwind UI - toggles Tailwind UI - form elements (inc checkboxes and radios)

Tailwind UI - buttons