{
  "id": "daisyui-radio",
  "displayName": "radio",
  "description": "Radio buttons allow the user to select one option from a set.",
  "category": "Daisy UI / Data Input",
  "tag": "div",
  "classNames": "form-control",
  "options": [
    {
      "type": "text",
      "label": "Value",
      "name": "value",
      "modify": "none",
      "value": ""
    },
    {
      "name": "required",
      "type": "select",
      "label": "Required",
      "modify": "none",
      "options": [
        {
          "label": "No",
          "value": "false"
        },
        {
          "label": "Yes",
          "value": "true"
        }
      ]
    },
    {
      "name": "size",
      "label": "Size",
      "modify": "none",
      "type": "select",
      "options": [
        {
          "label": "Default",
          "value": "radio-md"
        },
        {
          "label": "xs",
          "value": "radio-xs"
        },
        {
          "label": "sm",
          "value": "radio-sm"
        },
        {
          "label": "lg",
          "value": "radio-lg"
        }
      ]
    },
    {
      "name": "color",
      "label": "Color",
      "modify": "none",
      "type": "select",
      "options": [
        {
          "label": "Default",
          "value": ""
        },
        {
          "label": "Primary",
          "value": "radio-primary"
        },
        {
          "label": "Seconday",
          "value": "radio-secondary"
        },
        {
          "label": "Accent",
          "value": "radio-accent"
        },
        {
          "label": "Info",
          "value": "radio-info"
        },
        {
          "label": "Success",
          "value": "radio-success"
        },
        {
          "label": "Warning",
          "value": "radio-warning"
        },
        {
          "label": "Error",
          "value": "radio-error"
        }
      ]
    },
    {
      "type": "text",
      "label": "Field name",
      "name": "name",
      "modify": "none",
      "value": "",
      "prepopulate": "instanceId"
    }
  ],
  "children": [
    {
      "id": "daisyui-radio-label",
      "tag": "label",
      "classNames": "label cursor-pointer",
      "children": [
        {
          "id": "daisyui-radio-input",
          "tag": "input",
          "classNames": "radio",
          "attributes": [
            {
              "type": "value",
              "name": "type",
              "value": "radio"
            }
          ],
          "references": [
            {
              "updates": "attribute",
              "name": "required",
              "type": "option",
              "target": "required"
            },
            {
              "updates": "attribute",
              "name": "name",
              "type": "option",
              "target": "name"
            },
            {
              "updates": "attribute",
              "name": "value",
              "type": "option",
              "target": "value"
            },
            {
              "updates": "classNames",
              "type": "option",
              "target": "size"
            },
            {
              "updates": "classNames",
              "type": "option",
              "target": "color"
            }
          ]
        },
        {
          "id": "daisyui-radio-label-text",
          "tag": "span",
          "classNames": "label-text flex-1 ml-2",
          "userSelect": true,
          "content": {
            "type": "value",
            "value": "Label text"
          }
        }
      ]
    }
  ]
}
