stitchesjs / stitches

[Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.
https://stitches.dev
MIT License
7.75k stars 253 forks source link

Add ability to assign custom componentId #1036

Open hadihallak opened 2 years ago

hadihallak commented 2 years ago

Is your feature request related to a problem? Please describe. Currently we have no way of creating stable hashes in Stitches that can be assigned via a build tool

Describe the solution you'd like Implement a withConfig api that accepts an object inside that object we're gonna add a componentId field that will be used as the hash for the component

Additional context In addition to componentId, the withConfig api will accept other properties that we will add later like the one discussed here