React

Toggle Button

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

Installation

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

Props

Prop

Type

pressed?boolean | undefined
defaultPressed?boolean | undefined
onPressedChange?((pressed: boolean) => void) | undefined

Examples

Brand Solid

Neutral Weak

Small

Xsmall

Prefix Icon

Disabled

Loading

Last updated on

On this page