ButtonDefaults

object ButtonDefaults


Contains the default values used by Button.

Summary

Public functions

ButtonColors
@Composable
buttonColors(backgroundColor: ColorProvider, contentColor: ColorProvider)

Creates a ButtonColors that represents the default background and content colors used in a Button.

Public functions

buttonColors

Added in 1.0.0
@Composable
fun buttonColors(
    backgroundColor: ColorProvider = GlanceTheme.colors.primary,
    contentColor: ColorProvider = GlanceTheme.colors.onPrimary
): ButtonColors

Creates a ButtonColors that represents the default background and content colors used in a Button.

Parameters
backgroundColor: ColorProvider = GlanceTheme.colors.primary

the background color of this Button

contentColor: ColorProvider = GlanceTheme.colors.onPrimary

the content color of this Button