Spectrum Components API

Schema version: 6.0.0

Action group

An action group is a grouping of action buttons that are related to each other.

PropertyValuesDefault valueRequired
orientation
horizontal / vertical
horizontal
size
s / m / l / xl
m
density
regular / compact
regular
is justified
yes / no
no
is quiet
yes / no
no
is emphasized
yes / no
no
enable selection
yes / no
no
selection mode
single / multiple
Only applicable if selection is enabled
single
allows empty selection
yes / no
Only applicable if selection is enabled
no
overflow mode
wrap / collapse
wrap
is disabled
yes / no
no
{
  "slug": "action-group",
  "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
  "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/action-group.json",
  "title": "Action group",
  "description": "An action group is a grouping of action buttons that are related to each other.",
  "meta": {
    "category": "actions",
    "documentationUrl": "https://spectrum.adobe.com/page/action-group/"
  },
  "type": "object",
  "properties": {
    "orientation": {
      "type": "string",
      "enum": [
        "horizontal",
        "vertical"
      ],
      "default": "horizontal"
    },
    "size": {
      "type": "string",
      "enum": [
        "s",
        "m",
        "l",
        "xl"
      ],
      "default": "m"
    },
    "density": {
      "type": "string",
      "enum": [
        "regular",
        "compact"
      ],
      "default": "regular"
    },
    "isJustified": {
      "type": "boolean",
      "default": false
    },
    "isQuiet": {
      "type": "boolean",
      "default": false
    },
    "isEmphasized": {
      "type": "boolean",
      "default": false
    },
    "enableSelection": {
      "type": "boolean",
      "default": false
    },
    "selectionMode": {
      "type": "string",
      "enum": [
        "single",
        "multiple"
      ],
      "default": "single",
      "description": "Only applicable if selection is enabled"
    },
    "allowsEmptySelection": {
      "type": "boolean",
      "default": false,
      "description": "Only applicable if selection is enabled"
    },
    "overflowMode": {
      "type": "string",
      "enum": [
        "wrap",
        "collapse"
      ],
      "default": "wrap"
    },
    "isDisabled": {
      "type": "boolean",
      "default": false
    }
  },
  "examples": [
    {
      "size": "s"
    }
  ]
}
← Back to home