{
  "agentIndexVersion": 1,
  "engineVersion": "0.4.0",
  "definitions": [
    {
      "id": "engine.button",
      "alias": "button",
      "name": "button",
      "version": "0.1.0",
      "source": "npm",
      "description": "Triggers an action. Renders a native button.",
      "guidelines": [
        "Use primary for the single most important action in a view, secondary for other actions, ghost in dense toolbars, danger for destructive actions.",
        "Labels are short verbs or verb phrases, for example 'Run analysis'.",
        "Icon-only buttons need an accessibleLabel that says what the button does.",
        "Use loading while the action runs. The button stays focusable and ignores presses.",
        "Size is local to the button. Density comes from the surrounding application, never from a prop."
      ],
      "className": "ue-button",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:uiuxengine:component:engine.button@0.1.0",
        "title": "button",
        "description": "Triggers an action. Renders a native button.",
        "type": "object",
        "properties": {
          "variant": {
            "description": "Visual emphasis.",
            "type": "string",
            "enum": [
              "primary",
              "secondary",
              "ghost",
              "danger"
            ],
            "default": "secondary"
          },
          "size": {
            "description": "Size within the current density.",
            "type": "string",
            "enum": [
              "sm",
              "md",
              "lg"
            ],
            "default": "md"
          },
          "label": {
            "description": "Visible text. Also the accessible name.",
            "type": "string",
            "maxLength": 80
          },
          "accessibleLabel": {
            "description": "Accessible name when there is no visible label, or to make the visible label more specific.",
            "type": "string",
            "maxLength": 160
          },
          "disabled": {
            "description": "Prevents interaction.",
            "type": "boolean",
            "default": false
          },
          "loading": {
            "description": "Shows a spinner and ignores presses.",
            "type": "boolean",
            "default": false
          },
          "leadingIcon": {
            "$ref": "#/$defs/iconRef",
            "description": "Icon before the label."
          },
          "trailingIcon": {
            "$ref": "#/$defs/iconRef",
            "description": "Icon after the label."
          }
        },
        "additionalProperties": false,
        "allOf": [
          {
            "anyOf": [
              {
                "required": [
                  "label"
                ]
              },
              {
                "required": [
                  "accessibleLabel"
                ]
              }
            ]
          },
          {
            "anyOf": [
              {
                "required": [
                  "label"
                ]
              },
              {
                "required": [
                  "leadingIcon"
                ]
              },
              {
                "required": [
                  "trailingIcon"
                ]
              }
            ]
          }
        ],
        "$defs": {
          "iconRef": {
            "type": "object",
            "description": "A reference to an icon in the host's approved catalog.",
            "properties": {
              "type": {
                "const": "icon"
              },
              "id": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "style": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "weight": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              }
            },
            "required": [
              "type",
              "id"
            ],
            "additionalProperties": false
          }
        }
      },
      "events": [
        {
          "name": "press",
          "description": "The button was activated by pointer, keyboard or an authorized agent.",
          "payload": {
            "not": {}
          }
        }
      ],
      "example": {
        "component": "engine.button",
        "props": {
          "label": "Button"
        },
        "slots": {
          "leadingIcon": {
            "type": "icon",
            "id": "plus"
          },
          "trailingIcon": {
            "type": "icon",
            "id": "chevron-down"
          }
        }
      },
      "install": "npm install @uiuxengine/react"
    },
    {
      "id": "engine.input",
      "alias": "input",
      "name": "input",
      "version": "0.1.0",
      "source": "npm",
      "description": "A single line of text that a person types. Takes part in forms like a native input.",
      "guidelines": [
        "Name every input: put it in a field, or use accessibleLabel or a label element that points at its id.",
        "The placeholder is an example of what to type, not a label, and it disappears as a person types.",
        "Act on valueCommit, when a person leaves the field or presses Enter, rather than on every keystroke.",
        "Set invalid while the host shows a validation message for it. The input doesn't set it by itself."
      ],
      "className": "ue-input",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:uiuxengine:component:engine.input@0.1.0",
        "title": "input",
        "description": "A single line of text that a person types. Takes part in forms like a native input.",
        "type": "object",
        "properties": {
          "type": {
            "description": "What kind of text it takes. The browser checks email and url values.",
            "type": "string",
            "enum": [
              "text",
              "email",
              "url",
              "tel"
            ],
            "default": "text"
          },
          "accessibleLabel": {
            "description": "Accessible name, when no field or label element names the input.",
            "type": "string",
            "maxLength": 160
          },
          "placeholder": {
            "description": "An example of what to type.",
            "type": "string",
            "maxLength": 120
          },
          "name": {
            "description": "The field name the value is submitted as.",
            "type": "string",
            "maxLength": 120
          },
          "autocomplete": {
            "description": "What the browser may fill in, such as 'email' or 'off'.",
            "type": "string",
            "maxLength": 120
          },
          "required": {
            "description": "A form can't be submitted empty.",
            "type": "boolean",
            "default": false
          },
          "minLength": {
            "description": "The fewest characters a person may submit.",
            "type": "integer",
            "minimum": 0
          },
          "maxLength": {
            "description": "The most characters a person can type.",
            "type": "integer",
            "minimum": 0
          },
          "readOnly": {
            "description": "Shows the value and submits it, but a person can't change it.",
            "type": "boolean",
            "default": false
          },
          "disabled": {
            "description": "Prevents interaction.",
            "type": "boolean",
            "default": false
          },
          "invalid": {
            "description": "Marks the value as invalid, while the host shows why.",
            "type": "boolean",
            "default": false
          },
          "leadingIcon": {
            "$ref": "#/$defs/iconRef",
            "description": "Shown before the text."
          }
        },
        "additionalProperties": false,
        "$defs": {
          "iconRef": {
            "type": "object",
            "description": "A reference to an icon in the host's approved catalog.",
            "properties": {
              "type": {
                "const": "icon"
              },
              "id": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "style": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "weight": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              }
            },
            "required": [
              "type",
              "id"
            ],
            "additionalProperties": false
          }
        }
      },
      "events": [
        {
          "name": "valueChange",
          "description": "A person edited the text, once per edit and once for a whole composition, or a form reset the input.",
          "payload": {
            "type": "object",
            "properties": {
              "value": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "value"
            ],
            "additionalProperties": false
          }
        },
        {
          "name": "valueCommit",
          "description": "A person left the field after an edit, or pressed Enter.",
          "payload": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string"
              }
            },
            "required": [
              "value"
            ],
            "additionalProperties": false
          }
        }
      ],
      "state": {
        "type": "object",
        "properties": {
          "value": {
            "description": "The text.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "example": {
        "component": "engine.input",
        "props": {
          "placeholder": "Placeholder",
          "accessibleLabel": "Input"
        },
        "slots": {
          "leadingIcon": {
            "type": "icon",
            "id": "envelope"
          }
        }
      },
      "install": "npm install @uiuxengine/react"
    },
    {
      "id": "engine.menu-item",
      "alias": "menu-item",
      "name": "menuItem",
      "version": "0.1.0",
      "source": "npm",
      "description": "One command in a menu.",
      "guidelines": [
        "Use only inside a menu.",
        "Labels are short verbs or verb phrases, for example 'Duplicate'. End with an ellipsis when the command asks for more before it runs, for example 'Rename…'.",
        "Values are unique within a menu and stay the same when labels change; the menu reports the value of the item that was pressed.",
        "Disable an item that can't run now rather than removing it. It stays focusable, so people still find it and hear that it's unavailable."
      ],
      "className": "ue-menu-item",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:uiuxengine:component:engine.menu-item@0.1.0",
        "title": "menuItem",
        "description": "One command in a menu.",
        "type": "object",
        "properties": {
          "value": {
            "description": "Identifies the item. The menu's itemPress reports it.",
            "type": "string",
            "maxLength": 200
          },
          "label": {
            "description": "The text people read.",
            "type": "string",
            "maxLength": 120
          },
          "disabled": {
            "description": "Shown and focusable, but pressing it does nothing.",
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "value",
          "label"
        ],
        "additionalProperties": false,
        "$defs": {
          "iconRef": {
            "type": "object",
            "description": "A reference to an icon in the host's approved catalog.",
            "properties": {
              "type": {
                "const": "icon"
              },
              "id": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "style": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "weight": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              }
            },
            "required": [
              "type",
              "id"
            ],
            "additionalProperties": false
          }
        }
      },
      "events": [],
      "example": {
        "component": "engine.menu-item",
        "props": {
          "label": "Menu item",
          "value": "value"
        }
      },
      "install": "npm install @uiuxengine/react"
    },
    {
      "id": "engine.menu",
      "alias": "menu",
      "name": "menu",
      "version": "0.1.0",
      "source": "npm",
      "description": "A button that opens a list of commands. Pressing an item runs its command; a menu holds no value.",
      "guidelines": [
        "Use for commands, for example 'Duplicate' or 'Archive'. Links that navigate, such as site navigation, belong in a navigation list, not a menu.",
        "The trigger's label names the group of commands, for example 'Actions'. An icon-only trigger needs an accessibleLabel.",
        "Keep menus short and flat. Put the commands people use most first.",
        "A command that needs confirmation or more input opens a dialog from itemPress. The menu has closed and focus is on its trigger by then."
      ],
      "className": "ue-menu",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:uiuxengine:component:engine.menu@0.1.0",
        "title": "menu",
        "description": "A button that opens a list of commands. Pressing an item runs its command; a menu holds no value.",
        "type": "object",
        "properties": {
          "variant": {
            "description": "The trigger's visual emphasis.",
            "type": "string",
            "enum": [
              "primary",
              "secondary",
              "ghost",
              "danger"
            ],
            "default": "secondary"
          },
          "size": {
            "description": "The trigger's size within the current density.",
            "type": "string",
            "enum": [
              "sm",
              "md",
              "lg"
            ],
            "default": "md"
          },
          "label": {
            "description": "The trigger's visible text.",
            "type": "string",
            "maxLength": 80
          },
          "accessibleLabel": {
            "description": "The trigger's accessible name when it has no visible label.",
            "type": "string",
            "maxLength": 160
          },
          "disabled": {
            "description": "Prevents opening the menu.",
            "type": "boolean",
            "default": false
          },
          "icon": {
            "$ref": "#/$defs/iconRef",
            "description": "Icon before the trigger's label."
          },
          "items": {
            "description": "The commands, in order.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "component": {
                  "enum": [
                    "engine.menu-item"
                  ]
                },
                "props": {
                  "type": "object"
                }
              },
              "required": [
                "component"
              ],
              "additionalProperties": false
            },
            "minItems": 1
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "anyOf": [
              {
                "required": [
                  "label"
                ]
              },
              {
                "required": [
                  "accessibleLabel"
                ]
              }
            ]
          },
          {
            "anyOf": [
              {
                "required": [
                  "label"
                ]
              },
              {
                "required": [
                  "icon"
                ]
              }
            ]
          }
        ],
        "$defs": {
          "iconRef": {
            "type": "object",
            "description": "A reference to an icon in the host's approved catalog.",
            "properties": {
              "type": {
                "const": "icon"
              },
              "id": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "style": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "weight": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              }
            },
            "required": [
              "type",
              "id"
            ],
            "additionalProperties": false
          }
        }
      },
      "events": [
        {
          "name": "itemPress",
          "description": "A person or an authorized agent pressed an enabled item. The menu then asks to close.",
          "payload": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string"
              }
            },
            "required": [
              "value"
            ],
            "additionalProperties": false
          }
        },
        {
          "name": "openChange",
          "description": "The menu was opened or closed.",
          "payload": {
            "type": "object",
            "properties": {
              "open": {
                "type": "boolean"
              }
            },
            "required": [
              "open"
            ],
            "additionalProperties": false
          }
        }
      ],
      "state": {
        "type": "object",
        "properties": {
          "open": {
            "description": "Whether the menu is shown.",
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "example": {
        "component": "engine.menu",
        "props": {
          "label": "Actions"
        },
        "slots": {
          "items": [
            {
              "component": "engine.menu-item",
              "props": {
                "value": "duplicate",
                "label": "Duplicate"
              }
            },
            {
              "component": "engine.menu-item",
              "props": {
                "value": "rename",
                "label": "Rename…"
              }
            },
            {
              "component": "engine.menu-item",
              "props": {
                "value": "archive",
                "label": "Archive"
              }
            }
          ]
        }
      },
      "install": "npm install @uiuxengine/react"
    },
    {
      "id": "engine.option",
      "alias": "option",
      "name": "option",
      "version": "0.3.0",
      "source": "npm",
      "description": "One choice in a select's list.",
      "guidelines": [
        "Use only inside a select.",
        "Values are unique within a select and stay the same when labels change; the label is what people read.",
        "Disable an option that can't be chosen now rather than removing it, so the list keeps its shape."
      ],
      "className": "ue-option",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:uiuxengine:component:engine.option@0.3.0",
        "title": "option",
        "description": "One choice in a select's list.",
        "type": "object",
        "properties": {
          "value": {
            "description": "Identifies the option. The select's value is the chosen option's value.",
            "type": "string",
            "maxLength": 200
          },
          "label": {
            "description": "The text people read.",
            "type": "string",
            "maxLength": 120
          },
          "disabled": {
            "description": "Shown, but can't be chosen.",
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "value",
          "label"
        ],
        "additionalProperties": false,
        "$defs": {
          "iconRef": {
            "type": "object",
            "description": "A reference to an icon in the host's approved catalog.",
            "properties": {
              "type": {
                "const": "icon"
              },
              "id": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "style": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "weight": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              }
            },
            "required": [
              "type",
              "id"
            ],
            "additionalProperties": false
          }
        }
      },
      "events": [],
      "example": {
        "component": "engine.option",
        "props": {
          "label": "Option",
          "value": "value"
        }
      },
      "install": "npm install @uiuxengine/react"
    },
    {
      "id": "engine.select",
      "alias": "select",
      "name": "select",
      "version": "0.4.0",
      "source": "npm",
      "description": "Chooses one option from a list that opens below a button. Takes part in forms like a native select.",
      "guidelines": [
        "Use for choosing one of several known options. For two options, consider a switch or radio buttons.",
        "Name every select: put it in a field, or use accessibleLabel or a label element that points at its id. In a spec, a field or accessibleLabel names it.",
        "The placeholder says what to choose, for example 'Choose a region'. It isn't a label.",
        "Set invalid while the host shows a validation message for it. The select doesn't set it by itself.",
        "Keep options short. Long lists scroll; a select is not a search field."
      ],
      "className": "ue-select",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:uiuxengine:component:engine.select@0.4.0",
        "title": "select",
        "description": "Chooses one option from a list that opens below a button. Takes part in forms like a native select.",
        "type": "object",
        "properties": {
          "accessibleLabel": {
            "description": "Accessible name, when no label element names the select.",
            "type": "string",
            "maxLength": 160
          },
          "placeholder": {
            "description": "Shown while no option is selected.",
            "type": "string",
            "maxLength": 80
          },
          "name": {
            "description": "The field name the value is submitted as.",
            "type": "string",
            "maxLength": 120
          },
          "required": {
            "description": "A form can't be submitted empty.",
            "type": "boolean",
            "default": false
          },
          "disabled": {
            "description": "Prevents interaction.",
            "type": "boolean",
            "default": false
          },
          "invalid": {
            "description": "Marks the value as invalid, while the host shows why.",
            "type": "boolean",
            "default": false
          },
          "options": {
            "description": "The options, in order.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "component": {
                  "enum": [
                    "engine.option"
                  ]
                },
                "props": {
                  "type": "object"
                }
              },
              "required": [
                "component"
              ],
              "additionalProperties": false
            },
            "minItems": 1
          }
        },
        "required": [
          "options"
        ],
        "additionalProperties": false,
        "$defs": {
          "iconRef": {
            "type": "object",
            "description": "A reference to an icon in the host's approved catalog.",
            "properties": {
              "type": {
                "const": "icon"
              },
              "id": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "style": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "weight": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              }
            },
            "required": [
              "type",
              "id"
            ],
            "additionalProperties": false
          }
        }
      },
      "events": [
        {
          "name": "valueChange",
          "description": "A person or an authorized agent chose an option, or a form reset the select.",
          "payload": {
            "type": "object",
            "properties": {
              "value": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "value"
            ],
            "additionalProperties": false
          }
        },
        {
          "name": "openChange",
          "description": "The list was opened or closed.",
          "payload": {
            "type": "object",
            "properties": {
              "open": {
                "type": "boolean"
              }
            },
            "required": [
              "open"
            ],
            "additionalProperties": false
          }
        }
      ],
      "state": {
        "type": "object",
        "properties": {
          "value": {
            "description": "The selected option's value.",
            "type": [
              "string",
              "null"
            ]
          },
          "open": {
            "description": "Whether the list is shown.",
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "example": {
        "component": "engine.select",
        "props": {
          "placeholder": "Choose an option",
          "accessibleLabel": "Select"
        },
        "slots": {
          "options": [
            {
              "component": "engine.option",
              "props": {
                "value": "apple",
                "label": "Apple"
              }
            },
            {
              "component": "engine.option",
              "props": {
                "value": "banana",
                "label": "Banana"
              }
            },
            {
              "component": "engine.option",
              "props": {
                "value": "cherry",
                "label": "Cherry"
              }
            }
          ]
        }
      },
      "install": "npm install @uiuxengine/react"
    },
    {
      "id": "engine.field",
      "alias": "field",
      "name": "field",
      "version": "0.1.0",
      "source": "npm",
      "description": "Gives one control a visible label, a description and an error message, and relates them to it.",
      "guidelines": [
        "Use a field for every input or select that has a visible label.",
        "Keep the label short. Put instructions and formats in the description.",
        "Set invalid and error together while the host shows why the value is wrong. Say how to fix it."
      ],
      "className": "ue-field",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:uiuxengine:component:engine.field@0.1.0",
        "title": "field",
        "description": "Gives one control a visible label, a description and an error message, and relates them to it.",
        "type": "object",
        "properties": {
          "label": {
            "description": "Names the control.",
            "type": "string",
            "maxLength": 120
          },
          "description": {
            "description": "Help shown under the control.",
            "type": "string",
            "maxLength": 300
          },
          "error": {
            "description": "Why the value is wrong, shown while invalid.",
            "type": "string",
            "maxLength": 300
          },
          "invalid": {
            "description": "Marks the control as invalid and shows the error.",
            "type": "boolean",
            "default": false
          },
          "control": {
            "description": "The control the field names.",
            "type": "object",
            "properties": {
              "component": {
                "enum": [
                  "engine.input",
                  "engine.select"
                ]
              },
              "props": {
                "type": "object"
              }
            },
            "required": [
              "component"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "label",
          "control"
        ],
        "additionalProperties": false,
        "$defs": {
          "iconRef": {
            "type": "object",
            "description": "A reference to an icon in the host's approved catalog.",
            "properties": {
              "type": {
                "const": "icon"
              },
              "id": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "style": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "weight": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              }
            },
            "required": [
              "type",
              "id"
            ],
            "additionalProperties": false
          }
        }
      },
      "events": [],
      "example": {
        "component": "engine.field",
        "props": {
          "label": "Label",
          "description": "Description",
          "error": "Error message"
        },
        "slots": {
          "control": {
            "component": "engine.input",
            "props": {
              "placeholder": "Placeholder"
            }
          }
        }
      },
      "install": "npm install @uiuxengine/react"
    },
    {
      "id": "engine.empty-state",
      "alias": "empty-state",
      "name": "emptyState",
      "version": "0.1.0",
      "source": "registry",
      "description": "Says that a view has nothing to show yet, and offers the action that fills it.",
      "guidelines": [
        "Use it in place of a list, table or result that is empty, not for errors or loading.",
        "The title says what is missing, for example 'No reports yet'. The description says why, or what to do next.",
        "Offer at most one action: the one that fills the view, as a primary button.",
        "Use size sm inside panels, table cells and sidebars, and md for a whole page or view."
      ],
      "className": "ue-empty-state",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:uiuxengine:component:engine.empty-state@0.1.0",
        "title": "emptyState",
        "description": "Says that a view has nothing to show yet, and offers the action that fills it.",
        "type": "object",
        "properties": {
          "size": {
            "description": "sm for panels and other small areas, md for a whole view.",
            "type": "string",
            "enum": [
              "sm",
              "md"
            ],
            "default": "md"
          },
          "title": {
            "description": "What is missing.",
            "type": "string",
            "maxLength": 60
          },
          "description": {
            "description": "Why the view is empty or what to do next. Wraps to the block's width.",
            "type": "string",
            "maxLength": 240
          },
          "icon": {
            "$ref": "#/$defs/iconRef",
            "description": "An icon for what is missing."
          },
          "action": {
            "description": "The action that fills the view.",
            "type": "object",
            "properties": {
              "component": {
                "enum": [
                  "engine.button"
                ]
              },
              "props": {
                "type": "object"
              }
            },
            "required": [
              "component"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false,
        "$defs": {
          "iconRef": {
            "type": "object",
            "description": "A reference to an icon in the host's approved catalog.",
            "properties": {
              "type": {
                "const": "icon"
              },
              "id": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "style": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "weight": {
                "type": "string",
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              }
            },
            "required": [
              "type",
              "id"
            ],
            "additionalProperties": false
          }
        }
      },
      "events": [],
      "example": {
        "component": "engine.empty-state",
        "props": {
          "title": "No items yet",
          "description": "Items you create appear here."
        },
        "slots": {
          "icon": {
            "type": "icon",
            "id": "inbox"
          },
          "action": {
            "component": "engine.button",
            "props": {
              "variant": "primary",
              "label": "Create item"
            }
          }
        }
      },
      "install": "npx @uiuxengine/cli add empty-state",
      "access": "free"
    }
  ]
}
