IconToggleButtonGhost
Icon toggle buttons help people take supplementary actions with a single tap. They’re used when a compact toggle button is required, such as in a toolbar or image list.
Parameters
controls the check state of this icon toggle button. When true
, this component will show icons.checked, and false
will show icons.unchecked
responds to user interaction of checking/unchecking the icon toggle button and changes @param checked by true
or false
a content to be drawn inside the IconToggleButton, should show one of IconToggleButtonIcons values that sets checked and unchecked
the Modifier to be applied to this icon button
one of IconButtonIntent values that will be used to determine IconButtonColors to be applied*
controls the enabled state of this icon button. When false
, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.
to be applied to the IconButton background. It should be one of ButtonShape values
one of the IconButtonSize values that sets width and height of the IconButton
text used by accessibility services to describe what this icon button represents. This text should be localized, such as by using androidx.compose.ui.res.stringResource or similar
the MutableInteractionSource representing the stream of Interactions for this icon button. You can create and pass in your own remember
ed instance to observe Interactions and customize the appearance / behavior of this icon button in different states.