← Components / Selection

Switch

M3 switch with the expressive thumb that grows on press and optional check / close icons.

SwiftUIReact Native · Coming soonFlutter · Coming soon
✓

Usage

SwiftUI
M3ESwitch(isOn: $wifi, icons: true)

API

PropertySwiftUIDescription
checkedisOn: Binding<Bool>State.
iconsicons, checkedIcon, uncheckedIconIcons inside the thumb.

Guidelines

  • Switches apply immediately; use a checkbox when the user must confirm with a button.