Composable Function

RemoteTextButton

Wear Material RemoteTextButton is a circular, text-only button with transparent background and no border.

RemoteTextButton

Source set: Android
@Composable
public fun RemoteTextButton(
    onClick: RemoteAction,
    modifier: RemoteModifier = RemoteModifier,
    enabled: RemoteBoolean = true.rb,
    shapes: RemoteTextButtonShapes = RemoteTextButtonDefaults.shapes(),
    colors: RemoteTextButtonColors = RemoteTextButtonDefaults.textButtonColors(),
    border: RemoteBorderStroke? = null,
    content: @Composable @RemoteComposable () -> Unit,
)

Wear Material RemoteTextButton is a circular, text-only button with transparent background and no border. It offers a single slot for text.

The default RemoteTextButton has no border and a transparent background for low emphasis actions. For actions that require higher emphasis, consider RemoteTextButtonDefaults.filledTonalTextButtonColors or overriding the colors via RemoteTextButtonColors.copy.

RemoteTextButton can be enabled or disabled. A disabled button will not respond to click events.

Example of a RemoteTextButton with customized colors:

Example of a filled tonal RemoteTextButton:

Example of a RemoteTextButton with corner animation on press:

Parameters

onClick Will be called when the user clicks the button.
modifier Modifier to be applied to the button.
enabled Controls the enabled state of the button. When false, this button will not be clickable. It must be a constant value.
shapes Defines the shape for this text button, including a pressed shape when animated. Defaults to a static shape based on RemoteTextButtonDefaults.shape, or use RemoteTextButtonDefaults.animatedShapes to animate the corners on press. The press animation is driven by touch events on the player, and is not shown by players that don't dispatch them.
colors RemoteTextButtonColors that will be used to resolve the background and content color for this button in different states.
border Optional RemoteBorderStroke that will be used to resolve the border for this button in different states, or null for no border.
content The content displayed on the text button, expected to be text or image.
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: