React

Toggle Button

A button-style component that allows users to turn a specific state on or off. It is used for immediate state changes such as filtering or view switching.

Available since@seed-design/react@0.0.1, @seed-design/css@0.0.1

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

Table of contents