{
  "definitions": {
    "events": {
      "$ref": "#/definitions/Events",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Events": {
          "additionalProperties": false,
          "properties": {
            "setVal": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "valid": {
                  "type": "boolean"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "valid",
                "id"
              ],
              "type": "object"
            }
          },
          "required": [
            "setVal"
          ],
          "type": "object"
        }
      }
    },
    "component": {
      "$ref": "#/definitions/Component",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Component": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "schemaentry": {
              "$ref": "#/definitions/FormSchemaEntry"
            },
            "show_validation": {
              "enum": [
                "yes",
                "no"
              ],
              "type": "string"
            },
            "style": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "FormSchemaDependency": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "values": {
              "items": {
                "type": [
                  "string",
                  "number",
                  "boolean"
                ]
              },
              "type": "array"
            }
          },
          "required": [
            "id"
          ],
          "type": "object"
        },
        "FormSchemaEntry": {
          "additionalProperties": false,
          "properties": {
            "array_style": {
              "description": "For `type: \"arraytags\"` only: forwarded to `hb-input-array-tags` as the host `array_style` attribute (`\"pills\"` | `\"area\"` string). When omitted, **`hb-form` defaults to `\"area\"`**.",
              "type": "string"
            },
            "dependencies": {
              "items": {
                "$ref": "#/definitions/FormSchemaDependency"
              },
              "type": "array"
            },
            "disabled": {
              "type": "boolean"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "params": {
              "$ref": "#/definitions/InputRadioParams"
            },
            "placeholder": {
              "type": "string"
            },
            "readonly": {
              "type": "boolean"
            },
            "required": {
              "type": "boolean"
            },
            "type": {
              "description": "Discriminator for `hb-form` rows (`row`, `text`, `number`, …). May be omitted on a standalone `schemaentry` when implied by the host tag.",
              "type": "string"
            },
            "validationRegex": {
              "type": "string"
            },
            "validationTip": {
              "type": "string"
            },
            "value": {}
          },
          "required": [
            "id"
          ],
          "type": "object"
        },
        "InputRadioOption": {
          "additionalProperties": false,
          "properties": {
            "label": {
              "type": "string"
            },
            "value": {
              "type": "string"
            }
          },
          "required": [
            "value"
          ],
          "type": "object"
        },
        "InputRadioParams": {
          "additionalProperties": false,
          "properties": {
            "options": {
              "items": {
                "$ref": "#/definitions/InputRadioOption"
              },
              "type": "array"
            }
          },
          "type": "object"
        }
      }
    }
  },
  "description": "Radio group from `schemaentry.params` as `InputRadioParams`: optional `options` array of `InputRadioOption` (`value`, optional `label`); the native `name` matches the field `id`. Initial `value` is stringified from `schemaentry`. Required + `show_validation` use Bulma `radios` / `radio` and `help is-danger`. Dispatches `setVal` `{ value, valid, id }` when the selection changes. Theme `--bulma-*` on `:host`. Typings: `InputRadioParams`, `InputRadioOption`, `FormSchemaEntry`, `Component`, `Events`.",
  "storybookArgs": {
    "schemaentry": {
      "control": {
        "type": "object"
      }
    },
    "show_validation": {
      "control": {
        "type": "boolean"
      }
    },
    "setVal": {
      "action": "setVal"
    }
  },
  "styleSetup": {
    "vars": [
      {
        "name": "--bulma-text",
        "valueType": "color",
        "defaultValue": "",
        "description": "Radio labels and legend text color."
      },
      {
        "name": "--bulma-border",
        "valueType": "color",
        "defaultValue": "",
        "description": "Radio outline and group border when invalid."
      },
      {
        "name": "--bulma-link",
        "valueType": "color",
        "defaultValue": "",
        "description": "Checked radio accent (native control tint where supported)."
      },
      {
        "name": "--bulma-danger",
        "valueType": "color",
        "defaultValue": "",
        "description": "Invalid group outline and `help is-danger`."
      },
      {
        "name": "--bulma-scheme-main",
        "valueType": "color",
        "defaultValue": "",
        "description": "Background for the radios block inside the shadow root."
      }
    ],
    "parts": [
      {
        "name": "input",
        "description": "Each native `<input type=\"radio\">` in the group (same part name repeated per option)."
      },
      {
        "name": "invalid-feedback",
        "description": "The `p.help.is-danger` message when `show_validation` is `yes` and a required choice is missing."
      }
    ]
  },
  "contributors": [],
  "htmlSlots": [],
  "i18n": [],
  "examples": [
    {
      "name": "default",
      "data": {
        "schemaentry": {
          "placeholder": "Choose here...",
          "id": "check0",
          "required": true,
          "label": "Check 0",
          "validationTip": "Check 1",
          "params": {
            "options": [
              {
                "label": "777",
                "value": "555"
              },
              {
                "label": "testlabel",
                "value": "testvalue"
              }
            ]
          }
        }
      }
    },
    {
      "name": "threeOptions",
      "description": "Radio group with three choices.",
      "data": {
        "schemaentry": {
          "id": "planTier",
          "required": true,
          "label": "Plan",
          "validationTip": "Select a plan.",
          "params": {
            "options": [
              {
                "label": "Starter",
                "value": "starter"
              },
              {
                "label": "Pro",
                "value": "pro"
              },
              {
                "label": "Enterprise",
                "value": "enterprise"
              }
            ]
          }
        }
      }
    },
    {
      "name": "preselected",
      "description": "Initial selection bound from schema value.",
      "data": {
        "schemaentry": {
          "id": "region",
          "required": true,
          "label": "Region",
          "value": "eu",
          "params": {
            "options": [
              {
                "label": "US East",
                "value": "us-east"
              },
              {
                "label": "EU",
                "value": "eu"
              },
              {
                "label": "APAC",
                "value": "apac"
              }
            ]
          }
        }
      }
    },
    {
      "name": "optional",
      "description": "Radio group where clearing is allowed (not required).",
      "data": {
        "schemaentry": {
          "id": "giftWrap",
          "required": false,
          "label": "Gift wrap",
          "params": {
            "options": [
              {
                "label": "No",
                "value": "no"
              },
              {
                "label": "Yes",
                "value": "yes"
              }
            ]
          }
        }
      }
    },
    {
      "name": "disabled",
      "description": "Radio group is fully disabled and non-interactive.",
      "data": {
        "schemaentry": {
          "id": "planDisabled",
          "label": "Plan (locked)",
          "value": "pro",
          "disabled": true,
          "params": {
            "options": [
              {
                "label": "Starter",
                "value": "starter"
              },
              {
                "label": "Pro",
                "value": "pro"
              },
              {
                "label": "Enterprise",
                "value": "enterprise"
              }
            ]
          }
        }
      }
    }
  ],
  "iifeIntegrity": "sha384-RfuiZbLqmL9MbhjYcpONGLiF+Xev5ElO4KcBtJ9R5y/j7dYl8JnYQt7ibFc2Gq5Z",
  "dependencies": [],
  "screenshots": [],
  "licenses": [
    {
      "type": "Apache-2.0",
      "path": "LICENSE.md",
      "cost": 0,
      "currency": "EUR"
    }
  ],
  "readmePath": "README.md",
  "name": "hb-input-radio",
  "category": "inputs",
  "tags": [
    "inputs"
  ],
  "size": {},
  "iifePath": "main.iife.js",
  "repoName": "@htmlbricks/hb-input-radio",
  "version": "0.76.5"
}