Skip to content

Figma variants support

Compare
Choose a tag to compare
@ilyalesik ilyalesik released this 29 Oct 13:56
· 454 commits to master since this release

Added a new component: ComponentSet. It allows defining component variants.

Example of usage:

<ComponentSet name="Button">
    <Component name="variant=Primary">
        <PrimaryButton text="Primary" />
    </Component>
    <Component name="variant=Dangerous">
        <DangerousButton text="Dangerous" />
    </Component>
    <Component name="variant=Secondary">
        <SecondaryButton text="Secondary" />
    </Component>
</ComponentSet>