ToggleButtonDefaults

Contains the default values used by ToggleButton

Properties

Link copied to clipboard

A pre-defined size for toggle button

Link copied to clipboard

A pre-defined size for toggle button

Link copied to clipboard

A pre-defined size for toggle button

Link copied to clipboard

A pre-defined size for toggle button

Functions

Link copied to clipboard

@Composable
fun toggleButtonColors(checkedContainerColor: Color = Color.Unspecified, checkedContentColor: Color = Color.Unspecified, uncheckedContainerColor: Color = Color.Unspecified, uncheckedContentColor: Color = Color.Unspecified): ToggleButtonColors

The content color will effect both ToggleButton's leading and trailing icon and content

Link copied to clipboard
fun toggleButtonSize(width: Dp = Dp.Unspecified, height: Dp = Dp.Unspecified, minWidth: Dp = Dp.Unspecified, maxWidth: Dp = Dp.Unspecified, minHeight: Dp = Dp.Unspecified, maxHeight: Dp = Dp.Unspecified): ButtonSize

Creates a ButtonSize that presents sizes used by ToggleButton

Link copied to clipboard

@Composable
fun toggleButtonVibrants(checkedContainerVibrant: Vibrant = Vibrant.Unspecified, checkedContentVibrant: Vibrant = Vibrant.Unspecified, uncheckedContainerVibrant: Vibrant = Vibrant.Unspecified, uncheckedContentVibrant: Vibrant = Vibrant.Unspecified): ToggleButtonVibrants

The content color will effect both ToggleButton's leading and trailing icon and content.