Spectrum Components API

Schema version: 6.0.0

Tree view

A tree view provides users with a way to navigate nested hierarchical information.

PropertyValuesDefault valueRequired
size
s / m / l / xl
m
is detached
yes / no
no
is emphasized
yes / no
no
show drag icon
yes / no
no
selection mode
single / multiple
multiple
selection style
checkbox / highlight
checkbox
selection behavior
toggle / replace
toggle
state
default / hover / down / keyboard focus
default
{
  "slug": "tree-view",
  "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
  "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/tree-view.json",
  "title": "Tree view",
  "description": "A tree view provides users with a way to navigate nested hierarchical information.",
  "meta": {
    "category": "navigation",
    "documentationUrl": "https://spectrum.adobe.com/page/tree-view/"
  },
  "type": "object",
  "properties": {
    "size": {
      "type": "string",
      "enum": [
        "s",
        "m",
        "l",
        "xl"
      ],
      "default": "m"
    },
    "isDetached": {
      "type": "boolean",
      "default": false
    },
    "isEmphasized": {
      "type": "boolean",
      "default": false
    },
    "showDragIcon": {
      "type": "boolean",
      "default": false
    },
    "selectionMode": {
      "type": "string",
      "enum": [
        "single",
        "multiple"
      ],
      "default": "multiple"
    },
    "selectionStyle": {
      "type": "string",
      "enum": [
        "checkbox",
        "highlight"
      ],
      "default": "checkbox"
    },
    "selectionBehavior": {
      "type": "string",
      "enum": [
        "toggle",
        "replace"
      ],
      "default": "toggle"
    },
    "state": {
      "type": "string",
      "enum": [
        "default",
        "hover",
        "down",
        "keyboard focus"
      ],
      "default": "default"
    }
  }
}
← Back to home