Variant
변형
Variant는 다른 크기, 강도, 설정에 맞춘 공식적인 버전의 컴포넌트야.
다른 예시
하나의 버튼 컴포넌트에는 세 가지 변형이 있습니다: 기본, 보조, 파괴적. 세 개의 별도 컴포넌트가 필요하지 않습니다.
주요 부분
- 01Foundation or token
- 02Applied component
- 03Visible state and rule
사용할 때
구성 요소 구조는 동일하게 유지되지만 외형이나 의미가 변경될 때 하나를 사용하십시오.
다음 경우에는 사용하지 마세요
관련 없는 동작을 혼란스러운 props 세트로 묶기 위해 변형을 사용하지 마세요.
코드에서 사용된 이름
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:하나의 버튼 컴포넌트에는 세 가지 변형이 있습니다: 기본, 보조, 파괴적. 세 개의 별도 컴포넌트가 필요하지 않습니다. Design concept to apply:변형 (Variant)。 Why it fits:구성 요소 구조는 동일하게 유지되지만 외형이나 의미가 변경될 때 하나를 사용하십시오. Do not use it when:관련 없는 동작을 혼란스러운 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):하나의 공식 표준이 전체 용어를 통제하지 않음. 의미는 팀, 플랫폼 또는 프레임워크마다 달라질 수 있음. 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: Variant는 다른 크기, 강도, 설정에 맞춘 공식적인 버전의 컴포넌트야. 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.