Hey all,
I was thinking of building a npm package that helps build tailwindui components easily.
For example, if you need to init a react project you could use:
$ npx tailwind init projectname --react
this would initialize a boilerplate project including the tailwindUI components.
Also, you could build the pages by using:
import { Navbar, Hero, Features } from 'tailwindui'
const App = () => (
<>
<Navbar logo="Logo" links={['Login', 'Signup']} />
<Hero title="Awesome page heading" description="" />
...
</>
)
A lot could be achieved via this approach, but I wanted to validate if users would find this useful or not. What do you think?
Is this similar to what Adam announced yesterday?
Also, I think you need to be careful about the TailwindUI license here.
From the TailwindUI license agreement
yeah. I had this plan for a long time now. I was initially thinking of distributing only the free tailwindUI components with permission from Adam.
In addition, I was thinking of providing the library to the TailwindUI team to include the paid tailwindUI components to its members..
But the question is: Would you love using it?
I personally wouldn't use it, because I only want to make components out of the elements I'm actually going to use. The rest would feel like clutter to me.
just skip the boilerplate - you can still use
import { Hero } from 'tailwindui'to import only the elements that you're gon use