Closed SirCameron closed 5 months ago
Closing this PR for the reason mentioned above. You may open an issue to propose a clsx/nested
(🤷 name tbd) submodule and invite discussion. I think this could be useful to some, but it definitely can't be added as the default behavior.
Thank you for the work & suggestion!
Thanks for checking it out :) I'll put it in a submodule and create a new PR.
Instead of writing:
hover:foo hover:bar hover:baz hover:after:foo hover:after:baz
This proposes:
clsx({ hover: ["foo", "bar", "baz", { after: ["foo", "baz"] }] });
Please excuse the reformatting of code :)