Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
ActionsAndroid

Speed dial

Expand a floating action button into labeled actions.

Public APILumenSpeedDialAndroid / Compose

Native example

Use Speed dial

Keep it to a few related create actions.

Speed dial rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulatorView dark appearance
kotlin
import androidx.compose.runtime.*
import com.santi020k.lumen.*

@Composable
fun CreateSpeedDial() {
    var last by remember { mutableStateOf<String?>(null) }
    LumenSpeedDial(
        actions = listOf(
            LumenSpeedDialAction("New note", LumenIconName.Pencil, "note"),
            LumenSpeedDialAction("Upload file", LumenIconName.Upload, "upload"),
            LumenSpeedDialAction("Invite people", LumenIconName.UserPlus, "invite")
        ),
        onAction = { value -> last = value },
        label = "Create"
    )
}
Android
A create button that expands upward into labeled actions and closes after one is chosen.

Reference

Public API

The primary shared and platform-specific options exposed by LumenSpeedDial.

APIValues or typeDefaultDescription
actions / onAction / directionitems / selection callback / expansion siderequired / required / upKeep it to a few related create actions.

Native behavior

Design and accessibility

When to use it

Keep it to a few related create actions.

Accessibility

The trigger exposes expanded state; actions are named and close the menu.

Shared component

Available on other platforms

React NativeApple / SwiftUI Web
Android docsCompose module