Object

ButtonDefaults

Contains the default values used by Button.

Source set: Android
public object ButtonDefaults

Contains the default values used by Button.

Functions

buttonColors

Source set: Android
@Composable
    /**
     * Creates a [ButtonColors] that represents the default background and content colors used in a
     * [Button].
     *
     * @param backgroundColor the background color of this [Button]
     * @param contentColor the content color of this [Button]
     */
    public fun buttonColors(
        backgroundColor: ColorProvider = GlanceTheme.colors.primary,
        contentColor: ColorProvider = GlanceTheme.colors.onPrimary,
    ): ButtonColors
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: