pacocoursey / cmdk

Fast, unstyled command menu React component.
https://cmdk.paco.me
MIT License
9.91k stars 285 forks source link

Extract Group.Heading to a separate component #261

Open JonathanLorimer opened 5 months ago

JonathanLorimer commented 5 months ago

Things like vanilla extract don't support styling arbitrary children using complex selectors like data selectors. It would be great to have an escape hatch and be able to pass your own class to certain components (like group headers).

Here is the discussion I started in the vanilla extract repo https://github.com/vanilla-extract-css/vanilla-extract/discussions/1411

pacocoursey commented 5 months ago

Agreed. A future update will make the Group header a separate component that forwards className.