Variant
バリアント
バリアントは、サイズや強さ、設定を変えるための、承認されたバージョンのことです。
もう一つの例
1つのButtonコンポーネントには、プライマリ、セカンダリ、破壊的の3つのバリエーションがあります。3つの別々のコンポーネントは必要ありません。
主な部分
- 01Foundation or token
- 02Applied component
- 03Visible state and rule
以下の場合に使用します
コンポーネント構造は同じままでも見た目や意味が変わる場合は、1つを使用します。
以下の場合は使用しないでください
バリアントを使用して、関連性のないアクションを混乱するプロップセットにまとめてはいけません。
コードで使用する名前
variant="primary" 出荷前に
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 バリアント (Variant)。 User context:1つのButtonコンポーネントには、プライマリ、セカンダリ、破壊的の3つのバリエーションがあります。3つの別々のコンポーネントは必要ありません。 Design concept to apply:バリアント (Variant)。 Why it fits:コンポーネント構造は同じままでも見た目や意味が変わる場合は、1つを使用します。 Do not use it when:バリアントを使用して、関連性のないアクションを混乱するプロップセットにまとめてはいけません。 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):単一の公式標準が全体の用語を管理するわけではありません。その意味はチーム、プラットフォーム、またはフレームワークによって変わる可能性があります。 Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
このリクエストを確認する
Review how バリアント (Variant) is used now. Definition: バリアントは、サイズや強さ、設定を変えるための、承認されたバージョンのことです。 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.