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

FilledTonalToggleButtonDefaults

Contains default values used by FilledTonalToggleButton.

Source set: Common
public object FilledTonalToggleButtonDefaults

Contains default values used by FilledTonalToggleButton.

Functions

colors

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

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

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

Parameters

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

elevation

Source set: Common
@Composable
    public fun elevation(
        defaultElevation: Dp = FilledTonalButtonTokens.ContainerElevation,
        pressedElevation: Dp = FilledTonalButtonTokens.PressedContainerElevation,
        focusedElevation: Dp = FilledTonalButtonTokens.FocusContainerElevation,
        hoveredElevation: Dp = FilledTonalButtonTokens.HoverContainerElevation,
        disabledElevation: Dp = 0.dp,
    ): ToggleButtonElevation

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

Parameters

defaultElevation the elevation used when the FilledTonalToggleButton is enabled, and has no other Interactions.
pressedElevation the elevation used when this FilledTonalToggleButton is enabled and pressed.
focusedElevation the elevation used when the FilledTonalToggleButton is enabled and focused.
hoveredElevation the elevation used when the FilledTonalToggleButton is enabled and hovered.
disabledElevation the elevation used when the FilledTonalToggleButton is not enabled.

Content updated: