Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 819 Bytes

File metadata and controls

25 lines (19 loc) · 819 Bytes

Component Variants example

An example of using Figma Variants.

<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>

Figma Variants visualization:

Figma Variants