{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "description": "# drayman-button\nButton powered by [Angular Material](https://material.angular.io/) library.\n\n## Example of usage\n\n![](media://drayman-button.gif)\n\n```typescript\nmodule.exports = async ({ forceUpdate }) => {\n     let counter = 0;\n\n     // Button has been clicked\n     const onClick = async () => {\n         counter++;\n         await forceUpdate();\n     }\n\n     return () => {\n\n         return ([\n             <drayman-button key=\"default-btn\" label=\"Click me\" onClick={onClick} />,\n             <html key=\"info\">\n                 <p>Button was clicked {counter} times</p>\n             </html>\n         ]);\n     }\n}\n```",
    "properties": {
        "buttonStyle": {
        },
        "disabled": {
            "description": "Wether button should be disabled.",
            "type": "boolean"
        },
        "icon": {
            "description": "Name of the [Material icon](https://material.io/resources/icons) printed inside button.",
            "type": "string"
        },
        "imgUrl": {
            "description": "Image shown on hover.",
            "type": "string"
        },
        "label": {
            "description": "Caption inside button.\n`Button` by default.",
            "type": "string"
        },
        "onClick": {
            "description": "Executed when user clicks a button.",
            "type": "object"
        },
        "tooltip": {
            "description": "Tooltip shown on hover.",
            "type": "string"
        },
        "view": {
            "description": "Material style of the button.\n`basic` by default.",
            "enum": [
                "basic",
                "fab",
                "flat",
                "icon",
                "miniFab",
                "raised",
                "stroked"
            ],
            "type": "string"
        }
    },
    "type": "object"
}

