[
  {
    "name": "label",
    "type": "string",
    "required": true,
    "description": "The label for the radios field."
  },
  {
    "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 radios title (`xl`, `l`, `m`, `s` or `xs`).",
    "default": "m"
  },
  {
    "name": "id",
    "type": "string",
    "required": true,
    "description": "A unique ID for the radios component."
  },
  {
    "name": "name",
    "type": "string",
    "required": true,
    "description": "The name of the form field."
  },
  {
    "name": "hint",
    "type": "string",
    "required": false,
    "description": "An optional hint to display above the form field."
  },
  {
    "name": "error",
    "type": "object",
    "required": false,
    "description": "If set, the details of any errors.",
    "params": [
      {
        "name": "text",
        "type": "string",
        "required": true,
        "description": "The error text to display."
      }
    ]
  },
  {
    "name": "items",
    "type": "array",
    "required": true,
    "description": "A list of radio items.",
    "params": [
      {
        "name": "text",
        "type": "string",
        "required": true,
        "description": "The text of the radio item."
      },
      {
        "name": "value",
        "type": "string",
        "required": true,
        "description": "The form field value."
      },
      {
        "name": "hint",
        "type": "string",
        "required": false,
        "description": "An extra hint to display inside the checkbox item."
      }
    ]
  },
  {
    "name": "selected",
    "type": "string",
    "required": false,
    "description": "Set the value of the initial selected item."
  },
  {
    "name": "small",
    "type": "boolean",
    "required": false,
    "description": "If `true`, show smaller radios.",
    "default": false
  },
  {
    "name": "inline",
    "type": "boolean",
    "required": false,
    "description": "If `true`, show the radios inline rather than vertical.",
    "default": false
  },
  {
    "name": "formItemClasses",
    "type": "string",
    "required": false,
    "description": "Classes to add to the radios form group."
  },
  {
    "name": "formItemAttributes",
    "type": "object",
    "required": false,
    "description": "HTML attributes (for example data attributes) to add to the radios form group."
  },
  {
    "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 radio elements."
  },
  {
    "name": "attributes",
    "type": "object",
    "required": false,
    "description": "HTML attributes (for example data attributes) to add to the radio elements."
  }
]
