ElevatedToggleButtonDefaults


Contains default values used by ElevatedToggleButton.

Summary

Public functions

ToggleButtonColors

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

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 ElevatedToggleButton.

Cmn
ToggleButtonElevation
@Composable
elevation(
    defaultElevation: Dp,
    pressedElevation: Dp,
    focusedElevation: Dp,
    hoveredElevation: Dp,
    disabledElevation: Dp
)

Creates a ToggleButtonElevation that will animate between the provided values according to the Material specification for an ElevatedToggleButton.

Cmn

Public functions

colors

@Composable
fun colors(): ToggleButtonColors

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

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 ElevatedToggleButton.

Parameters
containerColor: Color = Color.Unspecified

the container color of this ElevatedToggleButton when enabled.

contentColor: Color = Color.Unspecified

the content color of this ElevatedToggleButton when enabled.

disabledContainerColor: Color = Color.Unspecified

the container color of this ElevatedToggleButton when not enabled.

disabledContentColor: Color = Color.Unspecified

the content color of this ElevatedToggleButton when not enabled.

checkedContainerColor: Color = Color.Unspecified

the container color of this ElevatedToggleButton when checked.

checkedContentColor: Color = Color.Unspecified

the content color of this ElevatedToggleButton when checked.

elevation

@Composable
fun elevation(
    defaultElevation: Dp = ElevatedButtonTokens.ContainerElevation,
    pressedElevation: Dp = ElevatedButtonTokens.PressedContainerElevation,
    focusedElevation: Dp = ElevatedButtonTokens.FocusedContainerElevation,
    hoveredElevation: Dp = ElevatedButtonTokens.HoveredContainerElevation,
    disabledElevation: Dp = ElevatedButtonTokens.DisabledContainerElevation
): ToggleButtonElevation

Creates a ToggleButtonElevation that will animate between the provided values according to the Material specification for an ElevatedToggleButton.

Parameters
defaultElevation: Dp = ElevatedButtonTokens.ContainerElevation

the elevation used when the ElevatedToggleButton is enabled, and has no other Interactions.

pressedElevation: Dp = ElevatedButtonTokens.PressedContainerElevation

the elevation used when this ElevatedToggleButton is enabled and pressed.

focusedElevation: Dp = ElevatedButtonTokens.FocusedContainerElevation

the elevation used when the ElevatedToggleButton is enabled and focused.

hoveredElevation: Dp = ElevatedButtonTokens.HoveredContainerElevation

the elevation used when the ElevatedToggleButton is enabled and hovered.

disabledElevation: Dp = ElevatedButtonTokens.DisabledContainerElevation

the elevation used when the ElevatedToggleButton is not enabled.