Start native apps faster with the Composables CLI ->
Object

OutlinedToggleButtonDefaults

Contains default values used by OutlinedToggleButton.

Source set: Common
public object OutlinedToggleButtonDefaults

Contains default values used by OutlinedToggleButton.

Functions

outlinedToggleButtonColors

Source set: Common
@Composable
    public fun outlinedToggleButtonColors(): ToggleButtonColors

Creates a ToggleButtonColors that represents the default container and content colors used in a OutlinedToggleButton.

outlinedToggleButtonColors

Source set: Common
@Composable
    public fun outlinedToggleButtonColors(
        containerColor: Color = Color.Unspecified,
        contentColor: Color = Color.Unspecified,
        disabledContainerColor: Color = Color.Unspecified,
        disabledContentColor: Color = Color.Unspecified,
        checkedContainerColor: Color = Color.Unspecified,
        checkedContentColor: Color = Color.Unspecified,
    ): ToggleButtonColors

Creates a ToggleButtonColors that represents the default container and content colors used in a OutlinedToggleButton.

Parameters

containerColor the container color of this OutlinedToggleButton when enabled.
contentColor the content color of this OutlinedToggleButton when enabled.
disabledContainerColor the container color of this OutlinedToggleButton when not enabled.
disabledContentColor the content color of this OutlinedToggleButton when not enabled.
checkedContainerColor the container color of this OutlinedToggleButton when checked.
checkedContentColor the content color of this OutlinedToggleButton when checked.

outlinedToggleButtonBorder

Source set: Common
@Composable
    public fun outlinedToggleButtonBorder(enabled: Boolean, checked: Boolean): BorderStroke?

Resolves the default BorderStroke used in an OutlinedToggleButton.

Parameters

enabled controls the enabled state of the button
checked controls the checked state of the button