Elements

Components

Toggle

Toggle, dressed in the paper-and-ink system: a standalone seal that settles into the flat ink fill while pressed on. The parts — Root, Indicator.

#Basic usage

toggle/basic Vue React

#Props

#Indicator

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
defaultPressedbooleanThe default pressed state of the toggle.
disabledbooleanWhether the toggle is disabled.
pressedbooleanThe pressed state of the toggle.