Object

CompactButtonDefaults

Contains the default values used by CompactButton

Source set: Android
public object CompactButtonDefaults

Contains the default values used by CompactButton

Properties

shape

Source set: Android
public val shape: RoundedCornerShape

Recommended RoundedCornerShape for CompactButton.

HorizontalPadding

Source set: Android
public val HorizontalPadding: Dp

Recommended horizontal content padding for CompactButton

VerticalPadding

Source set: Android
public val VerticalPadding: Dp

Recommended vertical content padding for CompactButton

ContentPadding

Source set: Android
public val ContentPadding: PaddingValues

The default content padding used by CompactButton

minimumVerticalListContentPadding

Source set: Android
public val minimumVerticalListContentPadding: Dp

The minimum vertical content padding for the list when a CompactButton is placed at the top or bottom edge. Recommended for use with androidx.wear.compose.foundation.lazy.TransformingLazyColumnItemScope's androidx.wear.compose.foundation.lazy.TransformingLazyColumnItemScope.minimumVerticalContentPadding, which allows items to choose a preferred content padding for the list. TransformingLazyColumn takes its contentPadding as the maximum of the preferred content padding values and its own contentPadding parameter.

Height

Source set: Android
public val Height: Dp

The height applied for the CompactButton. This includes a visible button height of 32.dp and 8.dp of padding above and below the button in order to meet accessibility guidelines that request a minimum of 48.dp height and width of tappable area.

Note that you can override it by adjusting Modifier.height and Modifier.padding directly on CompactButton.

TapTargetPadding

Source set: Android
public val TapTargetPadding: PaddingValues

The default padding to be provided around a CompactButton in order to ensure that its tappable area meets minimum UX guidance.

Last updated: