Skip to main content
dcmaia-nectar
Mar 6, 2024 6:39 PM UTC

Component Boolean - Hide when True

Currently, using Figma component boolean properties, it only shows when true and hides when false. What if you could switch those around?

For example, when something is true, it could show some elements, and hide others. For example, a product thumbnail- when “on sale” is true, show sale icon, show strikethrough price, but also hide original price and replace it with a bolded/colorful/what have you of price.

Or if ‘Out of Stock’ is true, show all the ‘out of stock’ stuff material, but also hide the ‘add to cart’ button. Stuff like that.

Currently you have to create new variants just to show + hide things at the same time, or add redundant switches like ‘In Stock’ and ‘Out of Stock’ and just make sure they never have the same state.

21 replies

y_toku
Figmate
Community Support
Mar 8, 2024 1:35 AM UTC

Hi there,

Thank you for sharing your idea! We greatly value your feedback, and we would like to gauge the reaction of other members in the community. We may consider it for future enhancements!

Thanks,
Toku

wgo
Active Member
Mar 11, 2024 6:58 PM UTC

Would definitely use this! 💯%

Sebastian_Carlson
Jun 11, 2024 7:57 AM UTC

Yaas! Need this!

Will_Snow1
Jul 10, 2024 9:59 AM UTC

This exact situation just cropped up in my work.

Would make it so much more elegant if this was possible, instead have to create variants etc etc.

Markus_Hofmann
Jul 24, 2024 3:00 AM UTC

Must have! We have a lot of conditional design elements in components. For example a component might include a profile picture, but if none is provided we show something else instead.

Shayne
Aug 15, 2024 1:44 PM UTC

Would definitely use this feature!

Andreas_Petrov
New Member
Jan 21, 2025 10:20 AM UTC

This is an absolute no-brainer of a feature! 

Christine24
Jan 24, 2025 6:46 PM UTC

+1 on this. would be so useful to have a boolean to turn x on and y off at the same time.

Renan_Castro
New Member
Feb 10, 2025 6:07 AM UTC

☝ +1.

In the last month I found myself needing this feature multiple times. It would save a lot of unnecessary component variants and simply allow us to hide/show multiple layers in a single variant boolean toggle 🙏

David51
New Member
Mar 5, 2025 4:21 PM UTC

Need this, please.