Spectrum Components API

Schema version: 6.0.0

Popover

Popovers are containers used to display transient content such as menus, options, additional actions, and more. They visually stand out through stroke and drop shadow and float on top of the interface.

PropertyValuesDefault valueRequired
width
yes / no
nono
height
yes / no
nono
hide tip
yes / no
no
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
top
offset
yes / no
nono
cross offset
yes / no
nono
container padding
yes / no
nono
{
  "slug": "popover",
  "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
  "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/popover.json",
  "title": "Popover",
  "description": "Popovers are containers used to display transient content such as menus, options, additional actions, and more. They visually stand out through stroke and drop shadow and float on top of the interface.",
  "meta": {
    "category": "containers",
    "documentationUrl": "https://spectrum.adobe.com/page/popover/"
  },
  "type": "object",
  "properties": {
    "width": {
      "type": "number"
    },
    "height": {
      "type": "number"
    },
    "hideTip": {
      "type": "boolean",
      "default": false
    },
    "placement": {
      "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": "top"
    },
    "offset": {
      "type": "number",
      "default": 8,
      "description": "pixel measurement"
    },
    "crossOffset": {
      "type": "number",
      "default": 0
    },
    "containerPadding": {
      "type": "number",
      "default": 8,
      "description": "pixel measurement"
    }
  }
}
← Back to home