Spectrum Components API

Schema version: 6.0.0

Contextual help

Contextual help shows a user extra information about the state of either an adjacent component or an entire view. It explains a high-level topic about an experience and can point users to more information elsewhere.

PropertyValuesDefault valueRequired
icon
icon / nothing
nothing
popover placement
top / top left / top right / top start / top end / bottom / bottom left / bottom right / bottom start / bottom end / left / left top / left bottom / start / start top / start bottom / right / right top / right bottom / end / end top / end bottom
bottom start
popover offset
yes / no
nono
href
text
Optional URL within contextual help content like a 'Learn more' link.
-
popover cross offset
yes / no
nono
container padding
yes / no
nono
state
default / down / open / keyboard focus
default
{
  "slug": "contextual-help",
  "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
  "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/contextual-help.json",
  "title": "Contextual help",
  "description": "Contextual help shows a user extra information about the state of either an adjacent component or an entire view. It explains a high-level topic about an experience and can point users to more information elsewhere.",
  "meta": {
    "category": "feedback",
    "documentationUrl": "https://spectrum.adobe.com/page/contextual-help/"
  },
  "type": "object",
  "properties": {
    "icon": {
      "type": "string",
      "enum": [
        "info",
        "help"
      ],
      "default": "info"
    },
    "popoverPlacement": {
      "type": "string",
      "enum": [
        "top",
        "top left",
        "top right",
        "top start",
        "top end",
        "bottom",
        "bottom left",
        "bottom right",
        "bottom start",
        "bottom end",
        "left",
        "left top",
        "left bottom",
        "start",
        "start top",
        "start bottom",
        "right",
        "right top",
        "right bottom",
        "end",
        "end top",
        "end bottom"
      ],
      "default": "bottom start"
    },
    "popoverOffset": {
      "type": "number",
      "default": 8
    },
    "href": {
      "type": "string",
      "description": "Optional URL within contextual help content like a 'Learn more' link."
    },
    "popoverCrossOffset": {
      "type": "number",
      "default": 0
    },
    "containerPadding": {
      "type": "number",
      "default": 8
    },
    "state": {
      "type": "string",
      "enum": [
        "default",
        "down",
        "open",
        "keyboard focus"
      ],
      "default": "default"
    }
  }
}
← Back to home