SnackbarDefaults

Defaults for Snackbar.

Properties

Link copied to clipboard

The default corner radius when the message spans multiple lines (COUI coui_snack_bar_radius / couiRoundCornerL).

Link copied to clipboard

The size of the leading icon (COUI coui_snack_bar_icon_width/height).

Link copied to clipboard

The default inside margin (COUI coui_snack_bar_child_margin_horizontal_no_icon_start/end, coui_snack_bar_child_margin_vertical).

Link copied to clipboard

The default corner radius when the message fits on a single line (COUI coui_snack_bar_radius_single_line / couiRoundCornerXXL).

Functions

Link copied to clipboard
fun snackbarColors(containerColor: Color = COUITheme.colorScheme.surfaceContainerHighest, contentColor: Color = COUITheme.colorScheme.onSurfaceContainer, actionContentColor: Color = COUITheme.colorScheme.primary, dismissActionContentColor: Color = COUITheme.colorScheme.onSurfaceVariantActions): SnackbarColors

The default SnackbarColors. Container and content follow COUI couiColorSurfaceTop / couiColorPrimaryNeutral; the action label uses the accent color (couiColorPrimaryTextOnPopup) and the dismiss icon uses couiColorLabelTertiary.

Link copied to clipboard

The default text style of the message and action label (COUI couiTextAppearanceButton: 14sp, sans-serif-medium).