Skip to main content

Opposite boolean property (negation)

  • July 26, 2024
  • 1 reply
  • 159 views

Martin_Maricak

Sometimes I want one boolean component property to both show something, and hide something else.

It would be cool to be able to not only assign a boolean property to layer visibility, but also to indicate that it should show the layer if the property is false.

Example scenario: Imagine a situation where I’m designing favourites section on the app’s sidebar. I want a sidebar to be a component. Now when favourites is empty, I want to show an empty state with a CTA instead of the CTA. And I want to add a toggle that both hides an empty state, and shows a list of favorite items.

1 reply

djv
Figmate
  • Community Support
  • 4925 replies
  • July 29, 2024

Hey @Martin_Maricak, thanks for the feedback!

We’ll pass this idea onto our team for future consideration.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings