프리뷰 또는 이전 버전의 문서를 보고 있습니다.seed-design.io 방문
우리는 왜 디자인 엔지니어를 찾게 됐을까
Skip to Content
React

Toggle Button

사용자가 특정 상태를 켜거나 끌 수 있게 해주는 버튼 형태의 컴포넌트입니다. 필터링이나 뷰 전환과 같은 즉각적인 상태 변경에 사용됩니다.

사용 가능 버전@seed-design/[email protected], @seed-design/[email protected]

Installation

npx @seed-design/cli@latest add ui:toggle-button

Props

Prop

Type

asChild?boolean | undefined

Whether the element should be rendered as a child of a slot.

Default

false

loading?boolean | undefined

버튼에 등록된 비동기 작업이 진행 중임을 사용자에게 알립니다.

Default

false

disabled?boolean | undefined

버튼의 비활성화 여부를 나타냅니다.

Default

false

pressed?boolean | undefined
defaultPressed?boolean | undefined
onPressedChange?((pressed: boolean) => void) | undefined
variant?"brandSolid" | "neutralWeak" | undefined
  • brandSolid: 브랜드 컬러로 강조된 스타일입니다.
  • neutralWeak: 기본적인 토글 스타일입니다.

Default

"brandSolid"

size?"small" | "xsmall" | undefined

Default

"small"

Examples

Brand Solid

Neutral Weak

Small

Xsmall

Prefix Icon

Disabled

Loading

Last updated on 2026. 8. 2.