Skip to main content
matko13
Sep 28, 2022 11:53 AM UTC
Question

Boolean property message "not used within component"

Hi there, I have a problem with creating and applying a boolean property.

I have a button that is created with nested components. I create a boolean property on the top level of a component to show an icon-only button variant. Still, when I want to apply it to the variants, it’s not visible there so I get an error that says the property is not used within a component. Does anybody have a similar problem? Screenshots attached.


image
image

This topic has been closed for replies.

11 replies

tank666
Sep 28, 2022 12:15 PM UTC
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
matko13
matko13Author
Sep 28, 2022 12:34 PM UTC

I found a different solution - in my case, instead of boolean property, It can be done by applying a true/false variant.

Matt_W
New Member
Dec 20, 2022 2:01 PM UTC

I have the same question/problem. The issue is that there is no intuitive way of applying the boolean property to a variant.
If there’s a help article for how to use this please can you add the link to it?

tank666
Dec 20, 2022 3:36 PM UTC
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Nov 28, 2023 11:36 AM UTC

You have solved my problem with this practical short video ! Thanks 💛

Pavel_Pavlyuchik
Feb 20, 2024 8:30 AM UTC

Just select component instance inside your component and press at this Zalupka
Screenshot_4

Jul 1, 2024 4:42 PM UTC

Just create variant with values TRUE and FALSE, that fix problem!

Jul 15, 2024 9:00 AM UTC

Hey I had the same problem while makink variants and component properties.

First I used this “Boolean Property” But It didn"t work I dont know why.

then I used “Variant property” With true/false an it did work

can some one please tell me why boolean property was not working?
it just hide the layer/variant

Tony_Eneh
Jul 17, 2024 1:55 PM UTC

thank you. This short video clarified it for me

Andrew_Rodin
Dec 24, 2024 11:02 AM UTC

Who developed this feature isn’t designer, the Figma was the best instrument, but just only was… All mates say, that it’s become bullshit