Boolean Variables Assignable inside component

To make reusable components with variables, it is better to have Boolean variable inside a component. Kindly add that function in upcoming release

6 Likes

Hey Prabaharan, thanks for sharing this idea. Variables are still very much in beta and we’re definitely going to be improving them as time goes on. Support for boolean variants is definitely something we’re considering. Thanks!

4 Likes

Yes please this.

Also see: Allow assigning variables to component instances that are nested within other component instances

Yes please!! For example, right now I can’t easily show chip / button sepcs with and without icons.

E.G. buttons should have less padding on the side of icon, but only when buttons have an icon, otherwise the full padding. Right now if I apply boolean to icon, inside same component, I can only turn ALL icons off OR turn ALL on.

So I can’t easily show spec states with AND without icons inside same component.

Yes, desperately would need this! Would save sooo much time! <3