ToggleButton

fun ToggleButton(options: Array<ToggleButtonOption>, modifier: Modifier = Modifier, type: SelectionType = SelectionType.SINGLE, onClick: (selectedOptions: Array<ToggleButtonOption>) -> Unit = {})

This toggle button is a button that allows the user to select multiple options.

Parameters

options

the options for the toggle button

modifier

the modifier for the toggle button

type

the type of selection for the toggle button

onClick

the function to call when the user clicks the toggle button