[
  {
    "name": "legend",
    "type": "string",
    "required": true,
    "description": "The legend for the fieldset."
  },
  {
    "name": "headingLevel",
    "type": "number",
    "required": false,
    "description": "The heading level which represents an element from `<h1>` through to `<h6>`. Leave blank or set to `0` to use a plain `<label>` element with no heading."
  },
  {
    "name": "headingSize",
    "type": "string",
    "required": false,
    "description": "The physical size of the fieldset legend (`xl`, `l`, `m`, `s` or `xs`).",
    "default": "m"
  },
  {
    "name": "html",
    "type": "string",
    "required": false,
    "description": "The HTML for the main body of the fieldset. An alternative is to use the `caller` function to include content from a block."
  },
  {
    "name": "id",
    "type": "string",
    "required": true,
    "description": "A unique ID for the fieldset component."
  },
  {
    "name": "hint",
    "type": "string",
    "required": false,
    "description": "An optional hint to display above the form fields in a fieldset."
  },
  {
    "name": "smallerHint",
    "type": "boolean",
    "required": false,
    "description": "If `true`, make the fieldset hint smaller to match other form field components.",
    "default": false
  },
  {
    "name": "error",
    "type": "object",
    "required": false,
    "description": "If set, the details of any errors. This is used primarily to display errors on checkbox, date input and radio components and generally not on custom fieldsets.",
    "params": [
      {
        "name": "text",
        "type": "string",
        "required": true,
        "description": "The error text to display."
      }
    ]
  },
  {
    "name": "fieldsetClasses",
    "type": "string",
    "required": false,
    "description": "Classes to add to the `<fieldset>` element."
  },
  {
    "name": "fieldsetAttributes",
    "type": "object",
    "required": false,
    "description": "HTML attributes (for example data attributes) to add to the `<fieldset>` element."
  },
  {
    "name": "classes",
    "type": "string",
    "required": false,
    "description": "Classes to add to the fieldset elements."
  },
  {
    "name": "attributes",
    "type": "object",
    "required": false,
    "description": "HTML attributes (for example data attributes) to add to the fieldset elements."
  }
]
