Skip to contents

The toggle_button() component is an enhanced button() that can be toggled between pressed and normal states. Users can use it as a switch to turn a setting on or off. It can also be used to represent an independent choice similar to a check box.

See the official documention for toggle button, for all the correct props.

Examples

toggle_button("toggle")
toggle_button(
  "send",
  design = "Default",
  icon = "paper-plane"
)