Object

RemoteTextButtonDefaults

Contains the default values used by RemoteTextButton.

Source set: Android
public object RemoteTextButtonDefaults

Contains the default values used by RemoteTextButton.

Properties

shape

Source set: Android
public val shape: RemoteRoundedCornerShape

Recommended RemoteShape for RemoteTextButton.

SmallButtonSize

Source set: Android
public val SmallButtonSize: RemoteDp

The recommended size for a small button.

DefaultButtonSize

Source set: Android
public val DefaultButtonSize: RemoteDp

The default size applied for buttons.

LargeButtonSize

Source set: Android
public val LargeButtonSize: RemoteDp

The recommended size for a large button.

smallButtonTextStyle

Source set: Android
public val smallButtonTextStyle: RemoteTextStyle

The recommended text style for a small button.

defaultButtonTextStyle

Source set: Android
public val defaultButtonTextStyle: RemoteTextStyle

The default text style applied for buttons.

largeButtonTextStyle

Source set: Android
public val largeButtonTextStyle: RemoteTextStyle

The recommended text style for a large button.

Functions

textButtonColors

@Composable
public fun textButtonColors(): RemoteTextButtonColors

Returns a TextButtonColors for a text button - by default, a transparent background with contrasting content color. If the button is disabled then the colors default to RemoteColorScheme.onSurface with suitable alpha values applied.

textButtonColors

@Composable
public fun textButtonColors(
    containerColor: RemoteColor = RemoteColor(Color.Transparent),
    contentColor: RemoteColor? = null,
    disabledContainerColor: RemoteColor = RemoteColor(Color.Transparent),
    disabledContentColor: RemoteColor? = null,
): RemoteTextButtonColors

Returns a RemoteTextButtonColors for a text button - by default, a transparent background with contrasting content color. If the button is disabled then the colors default to RemoteColorScheme.onSurface with suitable alpha values applied.

Parameters

containerColor the background color of this text button when enabled
contentColor the content color of this text button when enabled
disabledContainerColor the background color of this text button when not enabled
disabledContentColor the content color of this text button when not enabled

Last updated: