Compound variants
All platforms
2.0.0
Unistyles does not have first-class support for compound variants, but you can easily create them yourself.
First, you need to define your variants as described in this guide.
The easiest way to create a compound variant is to use the dynamic function.
You can now merge both styles into one component, as with the regular StyleSheet.create
: