Skip to main content
Solved

Nested components: Ignoring a variant

  • October 11, 2023
  • 1 reply
  • 645 views

I want to have a checkbox and a label combined variant. Now I know you can have a nested component with 2 variants, which would be a filled checkbox with a label or without and an empty checkbox with a label or without. However, could I add a 3rd variant to set the direction of the label with a boolean? So I don’t want a dropdown option in the component. I just want that switcher. But I can’t as I currently choose, filled=no / Label=yes / Direction=left. The problem comes where the checkbox without a label won’t need to make use of the directional variant state. Any ideas?

Simple terms: Can a nested component ignore a variant

Best answer by dvaliao

Hey @Andrew_Harris,

There’s a workaround in this thread that may help:

View original

1 reply

dvaliao
Figmate
  • Community Support
  • 4603 replies
  • Answer
  • October 20, 2023

Hey @Andrew_Harris,

There’s a workaround in this thread that may help:


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