{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
        "SelectOption": {
            "properties": {
                "label": {
                    "type": "string"
                },
                "value": {
                }
            },
            "required": [
                "label",
                "value"
            ],
            "type": "object"
        }
    },
    "description": "# drayman-radio-group\n\nRadio button powered by [Angular Material](https://material.angular.io/) library.\n\n## Example of usage\n\n![](media://drayman-radio-group.gif)\n\n```typescript\nmodule.exports = async ({ forceUpdate }) => {\n     let favSeason;\n     let favAnimal;\n\n     const onSeasonChange = async ({ value }) => {\n         favSeason = value;\n         await forceUpdate();\n     }\n\n     const onAnimalChange = async ({ value }) => {\n         favAnimal = value;\n         await forceUpdate();\n     }\n\n     return () => {\n         const seasonRadioGroup: DraymanRadioGroup = {\n             options: [{\n                 label: 'Winter',\n                 value: 'winter'\n             }, {\n                 label: 'Spring',\n                 value: 'spring'\n             }, {\n                 label: 'Summer',\n                 value: 'summer'\n             }, {\n                 label: 'Autumn',\n                 value: 'autumn'\n             }],\n             label: 'Pick your favorite season',\n             onValueChange: onSeasonChange,\n             value: favSeason,\n         }\n\n         const animalRadioGroup: DraymanRadioGroup = {\n             options: [{\n                 label: 'Dog',\n                 value: 'dog'\n             }, {\n                 label: 'Cat',\n                 value: 'cat'\n             }],\n             label: 'Pick your favorite animal',\n             direction: 'row',\n             onValueChange: onAnimalChange,\n             value: favAnimal,\n         }\n\n         return [\n             <drayman-radio-group key=\"season\" {...seasonRadioGroup} />,\n             <drayman-radio-group key=\"animal\" {...animalRadioGroup} />,\n             <html key=\"info\">\n                 {favSeason && <p>Your favorite season is {favSeason}.</p>}\n                 {favAnimal && <p>Your favorite animal is {favAnimal}.</p>}\n             </html>\n         ];\n     };\n}\n```",
    "properties": {
        "direction": {
            "description": "Direction of option list.\n`column` by default.",
            "enum": [
                "column",
                "row"
            ],
            "type": "string"
        },
        "disabled": {
            "description": "Whether the control is disabled.",
            "type": "boolean"
        },
        "error": {
            "description": "Error text to be shown underneath the form field control.",
            "type": "string"
        },
        "helpText": {
            "description": "Hint text to be shown underneath the form field control.",
            "type": "string"
        },
        "label": {
            "description": "The floating label for a field.",
            "type": "string"
        },
        "onValueChange": {
            "description": "Executed with an input value from user.",
            "type": "object"
        },
        "onValueChangeStart": {
            "description": "Executed when user starts typing.",
            "type": "object"
        },
        "options": {
            "description": "Array of radio button options.",
            "items": {
                "$ref": "#/definitions/SelectOption"
            },
            "type": "array"
        },
        "updateOnBlur": {
            "description": "Wether value of the field should be emitted when user is blurred out of the control.",
            "type": "boolean"
        },
        "value": {
            "description": "Value of the input.",
            "type": "string"
        }
    },
    "type": "object"
}

