When to use it
Keep it to a few related create actions.
Native example
Keep it to a few related create actions.
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"
)
}Reference
The primary shared and platform-specific options exposed by LumenSpeedDial.
| API | Values or type | Default | Description |
|---|---|---|---|
| actions / onAction / direction | items / selection callback / expansion side | required / required / up | Keep it to a few related create actions. |
Native behavior
Keep it to a few related create actions.
The trigger exposes expanded state; actions are named and close the menu.
Shared component