{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "description": "# drayman-datepicker\n\nDatepicker powered by [Angular Material](https://material.angular.io/) library.\nAccepts as an input and emits on change a date in `ISO 8601` format.\n\n## Example of usage\n\n![](media://drayman-datepicker.gif)\n\n```typescript\nimport dayjs from 'dayjs';\n\nmodule.exports = async ({ forceUpdate }) => {\n     let age;\n     let date;\n\n     const onValueChange = async ({ value }) => {\n         date = value;\n         const dateOfBirth = dayjs(value);\n         age = dayjs().subtract(dateOfBirth).year() - 1970;\n         await forceUpdate();\n     }\n\n     return () => {\n         return [\n             <drayman-datepicker\n                 key=\"bday\"\n                 value={date}\n                 label=\"Date of Birth\"\n                 onValueChange={onValueChange}\n             />,\n             age &&\n             <html key=\"age\">\n                 <p>You are {age} years old!</p>\n             </html>\n         ];\n     }\n}\n```",
    "properties": {
        "appearance": {
            "description": "Appearance style for the field.\nWether `outline` (default), `legacy`, `fill` or `standard`.",
            "enum": [
                "fill",
                "legacy",
                "outline",
                "standard"
            ],
            "type": "string"
        },
        "dateFormat": {
            "description": "In which format date will be displayed. \nDefaults to `YYYY-MM-DD`.",
            "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"
        },
        "placeholder": {
            "description": "The placeholder text.",
            "type": "string"
        },
        "showTodayButton": {
            "description": "Wether to show today button or not.",
            "type": "boolean"
        },
        "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"
}

