tailwindcss-classnames icon indicating copy to clipboard operation
tailwindcss-classnames copied to clipboard

Missing 'group' helper?

Open bstro opened this issue 3 years ago • 3 comments

Environment:

  • TailwindCSS version: 3.0.15
  • tailwindcss-classnames version: 3.0.2

Current Behavior

While group pseudo-selectors work file, I am unable to find a helper function for the "group" tailwind class name itself. Its use is documented here

Expected Behavior

I would expect something like a group("group"). Maybe thats a little awkward, I haven't thought of any alternatives yet.

Additional Questions

  • [x] I've searched the issues list and this is not a duplicate
  • [x] I'm willing to fix this error

bstro avatar Jan 23 '22 17:01 bstro

I noticed that the peer classname is also missing. Should the utility contain both?

muhammadsammy avatar Jan 24 '22 23:01 muhammadsammy

Makes sense to me. What would the helper name be called? I really like how the functions are named after the actual css property, it really helps me use Tailwind faster. in this case, peer and group don't seem to compile to a css property but rather to selectors. wdyt?

bstro avatar Jan 25 '22 17:01 bstro

I think you are right. I don't have a name for the helper and if we made one helper for both utilities, it won't be easy to for the user to figure it out.

muhammadsammy avatar Jan 28 '22 17:01 muhammadsammy