mistcss icon indicating copy to clipboard operation
mistcss copied to clipboard

Nested composibility??

Open The-Code-Monkey opened this issue 11 months ago • 2 comments

Just throwing the idea of having nested composibility.

E.g. making a button group from a button component that is also made by mist?

The-Code-Monkey avatar Mar 22 '24 17:03 The-Code-Monkey

Good question. For now, I'll keep it simple and see how it goes.

I think that one of the appeal of MistCSS is that you can't do complex things with it. So your components are atomic and simple to understand.

Also UI libs like shadcn/ui exports multiple components that you compose later.

It's possible to do the same with MistCSS though I didn't have the time to document it yet: https://github.com/typicode/mistcss/releases/tag/v0.3.4

I may revisit this idea though.

typicode avatar Mar 24 '24 13:03 typicode

Awesome yeah, I'm not the biggest fan on shadcn and was wanting to build something a little more my style/control. I understand it's early days and getting single components working nicely is the priority.

The-Code-Monkey avatar Mar 24 '24 13:03 The-Code-Monkey