Toggle

A two-state button that can be either on or off.

API Reference

Toggle

NameTypeDefault
variant:symbol:default
Visual style variant. Options: :default | :outline
size:symbol:default
Options: :default | :sm | :lg
on:booleanfalse
Whether the toggle should be in the active/pressed state when initially rendered.
attributeskeyword arguments

Examples