Variant
Variante
Una variante è una versione approvata di un componente per una dimensione, un peso o un'impostazione diversa.
Un altro esempio
Un componente Button ha tre varianti: primaria, secondaria e distruttiva. Non ha bisogno di tre componenti separati.
Parti principali
- 01Foundation or token
- 02Applied component
- 03Visible state and rule
Usalo quando
Usane uno quando la struttura del componente resta la stessa ma il suo aspetto o significato cambia.
Non usarlo quando
Non usare mai varianti per raggruppare azioni non correlate in un set di proprietà confuso.
Nome usato nel codice
variant="primary" Prima di spedire
Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.
Outcome: Complete the task with Variante (Variant). User context: Un componente Button ha tre varianti: primaria, secondaria e distruttiva. Non ha bisogno di tre componenti separati. Design concept to apply: Variante (Variant). Why it fits: Usane uno quando la struttura del componente resta la stessa ma il suo aspetto o significato cambia. Do not use it when: Non usare mai varianti per raggruppare azioni non correlate in un set di proprietà confuso. Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary): Nessun singolo standard ufficiale controlla l'intero termine. Il suo significato può cambiare tra team, piattaforme o framework. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
Controlla questa richiesta
Review how Variante (Variant) is used now. Definition: Una variante è una versione approvata di un componente per una dimensione, un peso o un'impostazione diversa. Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.