Button

Playground

Properties

Variant
Tone
Size
Icon only
Leading icon
Trailing icon
Disabled
Generating (highlight)

Content

Label

Usage

텍스트 버튼은 children으로 이름을 전달합니다. leadingIcon과 trailingIcon은 SVG 컴포넌트를 받습니다. iconOnly 버튼은 aria-label이 필요하며 xs 크기는 iconOnly에서만 지원합니다. generating은 highlight tone의 시각 상태이며, 비동기 작업과 disabled, aria-busy 상태는 앱에서 관리합니다.

'use client';
import { Button } from '@mbsw/ui';

export default function Example() {
  return <Button type="button">{"텍스트"}</Button>;
}

Playground의 Code 탭에서 현재 설정과 동작이 포함된 예제 전체를 복사할 수 있습니다. 공통 CSS 설치는 설치하기를 확인하세요.

Composition