ButtonGroupDefaults


Default values used by ButtonGroup

Summary

Public functions

ToggleButtonShapes
@Composable
connectedLeadingButtonShapes(
    shape: Shape,
    pressedShape: Shape,
    checkedShape: Shape
)

Defaults button shapes for the start button in a ConnectedButtonGroup

Cmn
ToggleButtonShapes
@Composable
connectedMiddleButtonShapes(
    shape: Shape,
    pressedShape: Shape,
    checkedShape: Shape
)

Defaults button shapes for a middle button in a ConnectedButtonGroup.

Cmn
ToggleButtonShapes
@Composable
connectedTrailingButtonShapes(
    shape: Shape,
    pressedShape: Shape,
    checkedShape: Shape
)

Defaults button shapes for the end button in a ConnectedButtonGroup.

Cmn

Public properties

Dp

The default spacing used between children for connected button group

Cmn
Float

The default percentage, represented as a float, of the width of the interacted child element that will be used to expand the interacted child element as well as compress the neighboring children.

Cmn
Arrangement.Horizontal

The default Arrangement used between children for standard button group.

Cmn
RoundedCornerShape

Default shape for the checked state for the buttons in a connected button group

Cmn
Shape

Default shape for the pressed state for the leading button in a connected button group.

Cmn
Shape

Default shape for the leading button in a connected button group

Cmn
Shape
Cmn
Shape

Default shape for the pressed state for the trailing button in a connected button group.

Cmn
Shape

Default shape for the trailing button in a connected button group

Cmn

Public functions

connectedLeadingButtonShapes

@Composable
fun connectedLeadingButtonShapes(
    shape: Shape = connectedLeadingButtonShape,
    pressedShape: Shape = connectedLeadingButtonPressShape,
    checkedShape: Shape = connectedButtonCheckedShape
): ToggleButtonShapes

Defaults button shapes for the start button in a ConnectedButtonGroup

connectedMiddleButtonShapes

@Composable
fun connectedMiddleButtonShapes(
    shape: Shape = ShapeDefaults.Small,
    pressedShape: Shape = connectedMiddleButtonPressShape,
    checkedShape: Shape = connectedButtonCheckedShape
): ToggleButtonShapes

Defaults button shapes for a middle button in a ConnectedButtonGroup. A middle button is a button that's not the start / end button in the button group.

connectedTrailingButtonShapes

@Composable
fun connectedTrailingButtonShapes(
    shape: Shape = connectedTrailingButtonShape,
    pressedShape: Shape = connectedTrailingButtonPressShape,
    checkedShape: Shape = connectedButtonCheckedShape
): ToggleButtonShapes

Defaults button shapes for the end button in a ConnectedButtonGroup.

Public properties

ConnectedSpaceBetween

val ConnectedSpaceBetweenDp

The default spacing used between children for connected button group

ExpandedRatio

val ExpandedRatioFloat

The default percentage, represented as a float, of the width of the interacted child element that will be used to expand the interacted child element as well as compress the neighboring children. By Default, standard button group will expand the interacted child element by 15% of its width and this will be propagated to its neighbors.

HorizontalArrangement

val HorizontalArrangementArrangement.Horizontal

The default Arrangement used between children for standard button group.

connectedButtonCheckedShape

val connectedButtonCheckedShapeRoundedCornerShape

Default shape for the checked state for the buttons in a connected button group

connectedLeadingButtonPressShape

val connectedLeadingButtonPressShapeShape

Default shape for the pressed state for the leading button in a connected button group.

connectedLeadingButtonShape

val connectedLeadingButtonShapeShape

Default shape for the leading button in a connected button group

connectedMiddleButtonPressShape

val connectedMiddleButtonPressShapeShape

connectedTrailingButtonPressShape

val connectedTrailingButtonPressShapeShape

Default shape for the pressed state for the trailing button in a connected button group.

connectedTrailingButtonShape

val connectedTrailingButtonShapeShape

Default shape for the trailing button in a connected button group