Skip to content

Switch

Switches toggle the selection of an item on or off

switch

Usage

python
from material_ui import Switch

switch = Switch()

API

Properties

NameTypeDefaultDescription
selectedboolFalseWhether the switch is on or off.

Signals

NameArgumentsDescription
on_changevalue: boolEmitted when the user toggles the switch.