OutlinedToggleButtonDefaults


Contains default values used by OutlinedToggleButton.

Summary

Public functions

BorderStroke?
@Composable
border(enabled: Boolean, checked: Boolean)

Resolves the default BorderStroke used in an OutlinedToggleButton.

Cmn
ToggleButtonColors

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

Cmn
ToggleButtonColors
@Composable
colors(
    containerColor: Color,
    contentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color,
    checkedContainerColor: Color,
    checkedContentColor: Color
)

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

Cmn

Public functions

border

@Composable
fun border(enabled: Boolean, checked: Boolean): BorderStroke?

Resolves the default BorderStroke used in an OutlinedToggleButton.

Parameters
enabled: Boolean

controls the enabled state of the button

checked: Boolean

controls the checked state of the button

colors

@Composable
fun colors(): ToggleButtonColors

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

colors

@Composable
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: Color = Color.Unspecified

the container color of this OutlinedToggleButton when enabled.

contentColor: Color = Color.Unspecified

the content color of this OutlinedToggleButton when enabled.

disabledContainerColor: Color = Color.Unspecified

the container color of this OutlinedToggleButton when not enabled.

disabledContentColor: Color = Color.Unspecified

the content color of this OutlinedToggleButton when not enabled.

checkedContainerColor: Color = Color.Unspecified

the container color of this OutlinedToggleButton when checked.

checkedContentColor: Color = Color.Unspecified

the content color of this OutlinedToggleButton when checked.