Components

Button

Basic interaction component to trigger user actions

Overview

Button triggers actions or events on click. Use it for form submissions, opening dialogs, executing operations, and more.

Variants

Use primary for the main action on a page, and secondary for supporting actions.

Size

Button has a single size: 40px tall with 12px padding. There is no size prop.

Full Width

Use isFullWidth to make the button span the full width of its parent container. Useful for mobile layouts or form footers.

Disabled State

A disabled button indicates that the action is unavailable in the current state.

Props

PropTypeDefaultRequiredDescription
variant'primary' | 'secondary''primary'NoVisual hierarchy. Use one primary per section.
isFullWidthbooleanfalseNoWhether to fill the parent width
disabledbooleanfalseNoDisabled
type'button' | 'submit' | 'reset''button'NoButton type. Defaults to button, so it does not submit a form unless you say so.
onClickMouseEventHandler<HTMLButtonElement>-NoClick handler
childrenReactNode-YesButton content
classNamestring-NoExtra CSS class
aria-labelstring-NoAccessible name
refRef<HTMLButtonElement>-NoRef to the button element

Specification

base

상태요소속성값
enabledrootborderRadius$size.radius.200
enabledrootborderWidth$size.stroke.border
enabledroottypography$text.singleLine.bodyBase
enabledrootpadding$size.space.300
enabledrootheight2.5rem토큰 아님 — no sizing token scale
enabledlabelcolor$color.text.default.default
focusVisiblerootoutlineWidth$size.stroke.focus
focusVisiblerootoutlineStylesolid토큰 아님 — no line style token
focusVisiblerootoutlineColor$color.border.focus.default
focusVisiblerootoutlineOffset2px토큰 아님 — no ring offset token; same as focusRingOutside in focusRing.ts

variant=primary

상태요소속성값
enabledrootbackgroundColor$color.background.brand.default
enabledrootborderColor$color.border.brand.default
enabledlabelcolor$color.text.brand.onBrand
hoverrootbackgroundColor$color.background.brand.defaultHover
hoverlabelcolor$color.text.brand.onBrand
pressedrootbackgroundColor$color.background.brand.defaultPressed
pressedlabelcolor$color.text.brand.onBrand
disabledrootbackgroundColor$color.background.disabled.default
disabledrootborderColor$color.border.disabled.default
disabledlabelcolor$color.text.disabled.default

variant=secondary

상태요소속성값
enabledrootbackgroundColor$color.background.default.default
enabledrootborderColor$color.border.default.default
enabledlabelcolor$color.text.brand.default
hoverrootbackgroundColor$color.background.default.defaultHover
hoverlabelcolor$color.text.default.default
pressedrootbackgroundColor$color.background.default.defaultPressed
pressedlabelcolor$color.text.default.default
disabledrootbackgroundColor$color.background.disabled.default
disabledrootborderColor$color.border.disabled.default
disabledlabelcolor$color.text.disabled.default

Usage Guidelines

Do

  • Use a primary button for the most important action on a page
  • Use secondary buttons for supporting or less important actions
  • Keep button labels concise and action-oriented

Don't

  • Don't use more than one primary button per section
  • Don't disable a button without explaining the reason
  • Don't use generic labels like "Click here"