버튼
버튼은 어떤 기능이나 동작을 실행하거나 기능을 사용하기 위한 상태로 변경하는 요소이다.
버튼은 어떤 기능이나 동작을 실행하거나 기능을 사용하기 위한 상태로 변경하는 요소이다.
사용 지침
주(primary)·보조(secondary)·3차(tertiary) 위계를 한 화면에 함께 사용하되 주 버튼은 화면당 하나로 제한하고, 동작 결과가 예측 가능한 명확한 동사형 라벨을 사용합니다.
예제
Primary
Secondary
Tertiary
Text
Disabled
Icon
Sizes
속성
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| aria-label | string | — | Defines a string value that labels the current element. @see aria-labelledby. |
| asChild | boolean | false | — |
| className | string | — | — |
| disabled | boolean | — | — |
| id | string | — | — |
| onClick | MouseEventHandler<HTMLButtonElement> | — | — |
| shape | enum | default | KRDS `.krds-btn.icon.border` — when "circle", renders a circular (rounded-full) bordered icon-only button. Additive; the default keeps the existing per-size rounding. Pair with `size="icon"` for the canonical circular icon button. |
| size | "default" | "xs" | "sm" | "lg" | "xl" | "icon" | null | default | — |
| style | CSSProperties | — | — |
| tabIndex | number | — | — |
| type | enum | — | — |
| variant | "default" | "secondary" | "outline" | "ghost" | "link" | "tertiary" | "text" | null | default | — |