[
  {
    "name": "title",
    "type": "string",
    "required": true,
    "description": "The title of the sidebar."
  },
  {
    "name": "headingLevel",
    "type": "number",
    "required": true,
    "description": "The heading level which represents an element from `<h1>` through to `<h6>`."
  },
  {
    "name": "headingSize",
    "type": "string",
    "required": false,
    "description": "The physical size of the sidebar title (`xl`, `l`, `m` or `s`).",
    "default": "m"
  },
  {
    "name": "items",
    "type": "array",
    "required": true,
    "description": "A list of sidebar items.",
    "params": [
      {
        "name": "text",
        "type": "string",
        "required": true,
        "description": "The text of the sidebar item."
      },
      {
        "name": "href",
        "type": "string",
        "required": true,
        "description": "The URL of the sidebar item."
      },
      {
        "name": "current",
        "type": "boolean",
        "required": false,
        "description": "If `true`, highlight the item as the current page or section.",
        "default": false
      },
      {
        "name": "children",
        "type": "array",
        "required": false,
        "description": "A list of sidebar child items.",
        "params": [
          {
            "name": "text",
            "type": "string",
            "required": true,
            "description": "The text of the child sidebar item."
          },
          {
            "name": "href",
            "type": "string",
            "required": true,
            "description": "The URL of the child sidebar item."
          }
        ]
      }
    ]
  },
  {
    "name": "type",
    "type": "string",
    "required": true,
    "description": "The type of sidebar style to use. Can be `contents`, `sections` or  `pages`."
  },
  {
    "name": "sticky",
    "type": "boolean",
    "required": false,
    "description": "If `true`, allows the sidebar to 'stick' to the top of the screen when scrolling.",
    "default": false
  },
  {
    "name": "classes",
    "type": "string",
    "required": false,
    "description": "Classes to add to the sidebar."
  },
  {
    "name": "attributes",
    "type": "object",
    "required": false,
    "description": "HTML attributes (for example data attributes) to add to the sidebar."
  }
]
