public object CompactButtonDefaults
Contains the default values used by CompactButton
Properties
shape
public val shape: RoundedCornerShape
Recommended RoundedCornerShape for CompactButton.
HorizontalPadding
public val HorizontalPadding: Dp
Recommended horizontal content padding for CompactButton
VerticalPadding
public val VerticalPadding: Dp
Recommended vertical content padding for CompactButton
ContentPadding
public val ContentPadding: PaddingValues
The default content padding used by CompactButton
minimumVerticalListContentPadding
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
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
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.