Variant
Variante
Um Variant é uma versão aprovada de um componente para um tamanho, força ou configuração diferente.
Outro exemplo
Um componente de Botão tem três variantes: primária, secundária e destrutiva. Não precisa de três componentes separados.
Partes principais
- 01Foundation or token
- 02Applied component
- 03Visible state and rule
Use-o quando
Use um quando a estrutura do componente permanece a mesma, mas sua aparência ou significado muda.
Não o use quando
Nunca use variantes para agrupar ações não relacionadas em um conjunto confuso de props.
Nome usado no código
variant="primary" Antes de lançar
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: Um componente de Botão tem três variantes: primária, secundária e destrutiva. Não precisa de três componentes separados. Design concept to apply: Variante (Variant). Why it fits: Use um quando a estrutura do componente permanece a mesma, mas sua aparência ou significado muda. Do not use it when: Nunca use variantes para agrupar ações não relacionadas em um conjunto confuso de props. 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): Nenhum padrão oficial único controla todo o termo. Seu significado pode mudar entre equipes, plataformas ou frameworks. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
Conferir este pedido
Review how Variante (Variant) is used now. Definition: Um Variant é uma versão aprovada de um componente para um tamanho, força ou configuração diferente. 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.