public static class ButtonDefaults


Summary

Public fields

static @NonNull ButtonDefaults

Public methods

final @NonNull ButtonColors

ButtonColors for the high-emphasis button representing the primary, most important or most common action on a screen.

final @NonNull ButtonColors

ButtonColors for the medium-emphasis button.

final @NonNull ButtonColors

Alternative ButtonColors for the high-emphasis button.

Public fields

INSTANCE

Added in 1.3.0-alpha06
public static @NonNull ButtonDefaults INSTANCE

Public methods

filledButtonColors

Added in 1.3.0-alpha06
public final @NonNull ButtonColors filledButtonColors(@NonNull MaterialScope receiver)

ButtonColors for the high-emphasis button representing the primary, most important or most common action on a screen.

These colors are using ColorScheme.primary for background color and ColorScheme.onPrimary for content color.

filledTonalButtonColors

Added in 1.3.0-alpha06
public final @NonNull ButtonColors filledTonalButtonColors(@NonNull MaterialScope receiver)

ButtonColors for the medium-emphasis button.

These colors are using ColorScheme.surfaceContainer for background color, ColorScheme.onSurface for content color and ColorScheme.primary for icon.

filledVariantButtonColors

Added in 1.3.0-alpha06
public final @NonNull ButtonColors filledVariantButtonColors(@NonNull MaterialScope receiver)

Alternative ButtonColors for the high-emphasis button.

These colors are using ColorScheme.primaryContainer for background color and ColorScheme.onPrimaryContainer for content color.