Skip to content
BENIBIX Learn

Component Variant

Design🖼️ User InterfaceUI Basics

Also known as Variant, Button Variant, Component Variants

One version of a part, like a filled or plain button. The designer picks it.

Think of it like

It is like a T-shirt in red, blue or green. Same shirt, a different version.

Example

A form uses a filled Save button and a plain Cancel button. Both are variants of one button.

Why it matters

One part can do many jobs. It still looks like one family.

Definition

A component variant is one version of a part, chosen when the screen is designed. A button might come as filled, plain or danger, and in small or large sizes. Variants are picked by the designer for a job, while states change as people use the part. Keeping variants in one component stops a pile of near-copies.

Try it

Version

For the one action the screen is for.

All four on one form

One button part. The version is chosen while the screen is built, not while it is used.

Common mistake

Mixing up variants and states. A danger button is a variant; a pressed button is a state.

Key takeaways

  1. 1
    Chosen while designing. Not while using.
  2. 2
    One part, many versions. Size, style, purpose.
  3. 3
    Not a state. States change in use.

Learn it properly