🌈 Create new beautiful Compose Gradients with our new wesite ->
Object

OutlinedToggleButtonDefaults

Contains default values used by OutlinedToggleButton.

Source set: Common
public object OutlinedToggleButtonDefaults

Contains default values used by OutlinedToggleButton.

Functions

colors

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

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

colors

Source set: Common
@Composable
    public fun colors(
        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.

border

Source set: Common
@Composable
    public fun border(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

Content updated: