액션Button17 props
Button
Button는 사용자가 실행할 수 있는 주요 또는 보조 명령을 제공합니다.
공식 문서 열기미리보기
Import
import {Button} from '@astryxdesign/core/Button';Astryx 문서 권장 방식대로 root barrel이 아니라 컴포넌트 subpath에서 가져옵니다.
사용 시점
Button는 사용자가 실행할 수 있는 주요 또는 보조 명령을 제공합니다.
buttonbtnctasubmitactionloadingprimarysecondary
중요 props
variantprimary | secondary | ghost | destructiveoptional
sizesm | md | lgoptional
typebutton | submit | resetoptional
valuestring | number | readonly string[]optional
테마 대상
astryx-button
사용 지침
- 권장Button의 목적이 드러나도록 레이블과 보조 설명을 함께 제공하세요.
- 권장상태 변화가 필요한 경우 사용자가 바로 이해할 수 있는 피드백을 연결하세요.
- 권장키보드와 보조 기술 사용자가 같은 흐름을 따라갈 수 있게 접근성 속성을 확인하세요.
- 권장화면 밀도와 주변 컴포넌트의 위계가 유지되도록 간격과 크기를 맞추세요.