Package-level declarations

Action components help people achieve an aim.

Buttons

Specification

Buttons represent actions that have an impact on the application at large.

ButtonBasic interaction
PrimaryButtonMost important action on a page
SecondaryButtonImportant actions
ActionButtonAlternative actions

Types

Link copied to clipboard
interface Buttons

Specification for buttons.

Functions

Link copied to clipboard
fun Buttons.AbstractButton(onClick: suspend () -> Unit, enabled: Boolean, scope: CoroutineScope, role: Buttons.Role, progress: Progress?, icon: @Composable () -> Unit?, content: @Composable () -> Unit)
Link copied to clipboard
fun Buttons.ActionButton(onClick: suspend () -> Unit, enabled: Boolean = true, scope: CoroutineScope = rememberCoroutineScope(), progress: Progress? = null, icon: @Composable () -> Unit? = null, content: @Composable () -> Unit)

Alternative actions on a page.

Link copied to clipboard
fun Buttons.Button(onClick: suspend () -> Unit, enabled: Boolean = true, scope: CoroutineScope = rememberCoroutineScope(), progress: Progress? = null, icon: @Composable () -> Unit? = null, content: @Composable () -> Unit)

Basic buttons represents the most basic interactions users can have with a system.

Link copied to clipboard
fun Buttons.PrimaryButton(onClick: suspend () -> Unit, enabled: Boolean = true, scope: CoroutineScope = rememberCoroutineScope(), progress: Progress? = null, icon: @Composable () -> Unit? = null, content: @Composable () -> Unit)

The most important action on a page.

Link copied to clipboard
fun Buttons.SecondaryButton(onClick: suspend () -> Unit, enabled: Boolean = true, scope: CoroutineScope = rememberCoroutineScope(), progress: Progress? = null, icon: @Composable () -> Unit? = null, content: @Composable () -> Unit)

Important actions on a page.