pacocoursey / cmdk

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

Extract Group.Heading to a separate component #261

Open JonathanLorimer opened 1 month ago

JonathanLorimer commented 1 month 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 1 month ago

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