RemoteTextButton
Source set: Android
@Composable
public fun RemoteTextButton(
onClick: RemoteAction,
modifier: RemoteModifier = RemoteModifier,
enabled: RemoteBoolean = true.rb,
shape: RemoteShape = RemoteTextButtonDefaults.shape,
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 overriding the colors by RemoteTextButtonColors.copy
RemoteTextButton can be enabled or disabled. A disabled button will not respond to click events.
Example of a RemoteTextButton:
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. |
| shape | Defines the shape for this button. Defaults to a static shape based on RemoteTextButtonDefaults.shape |
| 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. |
| content | The content displayed on the text button, expected to be text or image. |