Add multiline for variant. #246
Replies: 8 comments 2 replies
-
This one seems a pretty good request. A good use case would be for buttons, where one could have, for instance, a base class (e.g., 'button'), a "compact" prop and the variant itself (e.g., ["button", "primaryFilled", "compact"]. |
Beta Was this translation helpful? Give feedback.
-
Hey @VictorPullzz For your
If your problem is solved can you close the issue or provide another example because maybe I am missing something? 😉 |
Beta Was this translation helpful? Give feedback.
-
Hey @flexbox :) |
Beta Was this translation helpful? Give feedback.
-
✅
Can you try again and find another good example? 😄 —I understand your point but from my perspective |
Beta Was this translation helpful? Give feedback.
-
@flexbox |
Beta Was this translation helpful? Give feedback.
-
Hello! React Native provides a way to use multiple style references like : <Text style={[styles.main, styles.labeled]} /> I'd appreciate to find such with restyle library like: <Text variants={["main", "labeled"]} /> |
Beta Was this translation helpful? Give feedback.
-
Hey @fregayeg Example: Another way to handle this is to create a specific style like with variant text in react-native-paper <Text variant="displayLarge">Display Large</Text>
<Text variant="displayMedium">Display Medium</Text>
<Text variant="displaySmall">Display small</Text>
<Text variant="headlineLarge">Headline Large</Text>
<Text variant="headlineMedium">Headline Medium</Text>
<Text variant="headlineSmall">Headline Small</Text>
<Text variant="titleLarge">Title Large</Text>
<Text variant="titleMedium">Title Medium</Text>
<Text variant="titleSmall">Title Small</Text>
<Text variant="bodyLarge">Body Large</Text>
<Text variant="bodyMedium">Body Medium</Text>
<Text variant="bodySmall">Body Small</Text> as @VictorPulzz tried to convince me, I am happy to have a more detailed example to change my mind 😉 |
Beta Was this translation helpful? Give feedback.
-
I like the way fast-styles manage the variants : |
Beta Was this translation helpful? Give feedback.
-
It would be cool if you could order several textVariants
<Text variant={['h1', 'bold']} >....
Beta Was this translation helpful? Give feedback.
All reactions