[Tailwind UI]: General suggestions #2724
Replies: 2 comments 4 replies
-
Hey 👋 Thanks for the kind words and the suggestions!
This is sometimes tricky, because many components are "fluid", in the sense that we don't think of them as different "versions", but rather adapt the layout to look as good as possible on any screen dimension. Sure, we use specific breakpoints to achieve that, but we don't always think of a "mobile version, tablet version, desktop" version of a component.
Not quite sure what you mean by "documenting what sections do/control", do you mind elaborating on that?
That's a really good suggestion! We kinda do that in long repeating lists, where we'll have the output for one single item, and you'll see a Here's an example from the Team Section components: <li>
<div class="space-y-4">
<div class="relative pb-2/3">
<img class="absolute object-cover h-full w-full shadow-lg rounded-lg" src="..." alt="">
</div>
<div class="space-y-2">
<div class="text-lg leading-6 font-medium space-y-1">
<h4>Lindsay Walton</h4>
<p class="text-indigo-600">Front-end Developer</p>
</div>
<ul class="flex space-x-5">
<li>
<a href="#" class="text-gray-400 hover:text-gray-500 transition ease-in-out duration-150">
<span class="sr-only">Twitter</span>
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
...
</a>
</li>
<li>
<a href="#" class="text-gray-400 hover:text-gray-500 transition ease-in-out duration-150">
<span class="sr-only">LinkedIn</span>
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
...
</svg>
</a>
</li>
</ul>
</div>
</div>
</li>
<!-- More people... -->
We are actually working on a library called Headless UI which will allow us to power React and Vue components in Tailwind UI, so users can choose between the HTML, React or Vue version of the components. This library will allow us to provide UI components with great accessibility standards baked in, and abstracted away into a "renderless" UI library. We won't directly share React/Vue components before this is developed - but you're more than welcome to join the Tailwind UI discord server if you want to share your work with other folks 👍 |
Beta Was this translation helpful? Give feedback.
-
Moving this to GitHub discussions as those are interesting thoughts the community should have access to. We're trying to keep Thanks again for taking the time to share those thoughts, the discussion can continue where this is moving! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have really been enjoying using TailwindUI. I have a few suggestions that would make it much easier to use.
Document the number of variations in the layout at the top (on in a per component document). If are versions for 3 different screen sizes or layouts, it would be nice to know that without having to look through the whole file and hope to catch everyone. :-)
Related to that, having a version of the components that documents what the various sections do/control would be great.
For those component that are repeating items (like the lists and cards), having a version that is just the single item to make it easy to create JS components out of them would be nice.
Finally, if one were to create Vue/React/Angular versions of one of the components, is there any easy way to share them with other users?
Beta Was this translation helpful? Give feedback.
All reactions