widget, which uses a Jetpack Compose-like API. Despite the seeming simplicity of an on / off toggle, they're quite configurable! You can easily tweak their sizes and color schemes, for a start. Use
TriCheckbox
if you need to additionally support the indeterminate state.