Open Gildedter opened 2 years ago
$$restProps
is spread to the Search
component, so you can pass a unique attribute to only style the targeted element:
<Typeahead data-search-id="1" />
<style>
:global([data-search-id="1"]) {
/* ... */
}
</style>
Didn't work for me, I just stuck with one style...
I have multiple instances on my route, a main one, and a wrapped version, the wrapped version has a different look, but the styles of the main version is being overwritten by the wrapped version, I'm using this for targeting: