@startuml
!include <material/toggle_switch>

left to right direction
skinparam defaultTextAlignment center

rectangle "<$ma_toggle_switch>\nSwitch" as block #LightSteelBlue

interface " " as q1
interface " " as q2
interface " " as q3

q1 --> block: toggle
block --> q2: on
block --> q3: off
@enduml
