Variant
Variante
Un Variant es una versión aprobada de un componente para un tamaño, fuerza o configuración diferente.
Otro ejemplo
Un componente de botón tiene tres variantes: primaria, secundaria y destructiva. No necesita tres componentes separados.
Partes principales
- 01Foundation or token
- 02Applied component
- 03Visible state and rule
Úsalo cuando
Usa uno cuando la estructura del componente se mantiene igual pero su apariencia o significado cambia.
No lo uses cuando
Nunca use variantes para agrupar acciones no relacionadas en un conjunto confuso de propiedades.
Nombre usado en código
variant="primary" Antes de lanzarlo
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 de botón tiene tres variantes: primaria, secundaria y destructiva. No necesita tres componentes separados. Design concept to apply: Variante (Variant). Why it fits: Usa uno cuando la estructura del componente se mantiene igual pero su apariencia o significado cambia. Do not use it when: Nunca use variantes para agrupar acciones no relacionadas en un conjunto confuso de propiedades. 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): Ningún estándar oficial único controla todo el término. Su significado puede cambiar según equipos, plataformas o marcos. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
Revisa esta petición
Review how Variante (Variant) is used now. Definition: Un Variant es una versión aprobada de un componente para un tamaño, fuerza o configuración 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.