| calcite_action_group | R Documentation |
Groups multiple action components together with consistent layout and spacing. Action groups can be used within action bars to organize related actions.
calcite_action_group(
...,
id = NULL,
layout = NULL,
columns = NULL,
scale = NULL,
expanded = NULL,
label = NULL,
slot = NULL
)
... |
Child |
id |
Optional ID for the action group |
layout |
Layout style: "vertical", "horizontal", or "grid" |
columns |
Number of columns when layout is "grid" (1-6) |
scale |
Size of the group: "s" (small), "m" (medium), or "l" (large) |
expanded |
Whether the group is expanded |
label |
Accessibility label for the group |
slot |
Optional slot name (e.g., "bottom-actions" for action bars) |
An object of class calcite_component
# Basic action group with vertical layout
calcite_action_group(
calcite_action(text = "Add", icon = "plus"),
calcite_action(text = "Edit", icon = "pencil"),
calcite_action(text = "Delete", icon = "trash")
)
# Horizontal group with custom scale
calcite_action_group(
layout = "horizontal",
scale = "l",
calcite_action(text = "Save", icon = "save"),
calcite_action(text = "Cancel", icon = "x")
)
# Grid layout with 2 columns
calcite_action_group(
layout = "grid",
columns = 2,
calcite_action(text = "A", icon = "letter-a"),
calcite_action(text = "B", icon = "letter-b"),
calcite_action(text = "C", icon = "letter-c"),
calcite_action(text = "D", icon = "letter-d")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.