{
  "$schema": "https://rift-ds.com/schema/component.schema.json",
  "version": "1.40.0",
  "kind": "component",
  "name": "InspectorDropdown",
  "label": "Inspector dropdown",
  "slug": "inspector-dropdown",
  "category": "inspector",
  "description": "One-row select for inspector panels, with the name inside the bar and the library Dropdown's menu and font previews.",
  "client": true,
  "importPath": "rift-ds/components/Inspector/InspectorDropdown",
  "barrel": "main",
  "docsUrl": "https://rift-ds.com/components/inspector-dropdown",
  "markdownUrl": "https://rift-ds.com/components/inspector-dropdown.md",
  "exports": [
    {
      "component": "InspectorDropdown",
      "props": [
        {
          "name": "label",
          "type": "string",
          "typeKind": "primitive",
          "required": true,
          "description": "The setting's name, drawn inside the bar on the left. Also the dropdown's accessible name."
        },
        {
          "name": "value",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Currently selected value, controlled. Leave undefined to let the\ndropdown keep its own selection, seeded from `defaultValue`."
        },
        {
          "name": "defaultValue",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Selected value on first render when uncontrolled (`value` undefined)."
        },
        {
          "name": "options",
          "type": "DropdownOption[]",
          "typeKind": "array",
          "required": true,
          "description": "Available options (flat list). Each option's `font` previews the face, as in Dropdown.",
          "typeRefs": [
            "DropdownOption"
          ]
        },
        {
          "name": "groups",
          "type": "DropdownOptionGroup[]",
          "typeKind": "array",
          "required": false,
          "description": "Optional grouped options. When provided, renders groups with labels and separators.",
          "typeRefs": [
            "DropdownOptionGroup"
          ]
        },
        {
          "name": "placeholder",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Shown on the right when nothing is selected."
        },
        {
          "name": "disabled",
          "type": "boolean",
          "typeKind": "primitive",
          "required": false,
          "description": "Whether the dropdown is disabled.",
          "default": false
        },
        {
          "name": "size",
          "type": "\"default\" | \"compact\"",
          "typeKind": "enum",
          "values": [
            "compact",
            "default"
          ],
          "required": false,
          "description": "Component size, matching Button: `default` is 40px tall, `compact` 32px.",
          "default": "default"
        },
        {
          "name": "onValueChange",
          "type": "((value: string) => void)",
          "typeKind": "function",
          "required": false,
          "description": "Called with the newly selected value."
        },
        {
          "name": "className",
          "type": "string",
          "typeKind": "primitive",
          "required": false,
          "description": "Additional CSS classes, applied to the wrapper.",
          "default": ""
        }
      ]
    }
  ],
  "types": {
    "DropdownOption": {
      "kind": "interface",
      "definition": "interface DropdownOption {\n  /** Display label */\n  label: string;\n  /** Option value */\n  value: string;\n  /**\n   * CSS font-family stack to render this option's label in, so a typeface\n   * can preview itself in a font picker. Applies to the option row and to\n   * the closed trigger while the option is selected; omitted, the label\n   * keeps the theme's own face.\n   */\n  font?: string;\n  /**\n   * Icon drawn before the label, in the option row and on the closed\n   * trigger while the option is selected — Material Symbol name (string)\n   * or custom element (ReactNode).\n   */\n  icon?: string | React.ReactNode;\n  /** A second line under the label, in the option row only: an account number, a person's email. */\n  description?: string;\n  /**\n   * Content at the end of the option row, before the chosen mark: a balance,\n   * a count, a Badge. Shown in the row only, never on the closed trigger.\n   */\n  trailing?: React.ReactNode;\n  /** Whether this option is disabled */\n  disabled?: boolean;\n}"
    },
    "DropdownOptionGroup": {
      "kind": "interface",
      "definition": "interface DropdownOptionGroup {\n  /** Group heading */\n  label: string;\n  /** Options within the group */\n  options: DropdownOption[];\n}",
      "refs": [
        "DropdownOption"
      ]
    }
  },
  "externalTypes": {
    "ReactNode": "react"
  },
  "keyboard": [
    {
      "pattern": "combobox",
      "label": "Combobox",
      "apg": "https://www.w3.org/WAI/ARIA/apg/patterns/combobox/",
      "rows": [
        {
          "keys": [
            "ArrowDown"
          ],
          "text": "Opens the list of options."
        },
        {
          "keys": [
            "ArrowDown"
          ],
          "text": "With the list open, moves to the next option."
        },
        {
          "keys": [
            "ArrowUp"
          ],
          "text": "Moves to the previous option."
        },
        {
          "keys": [
            "Escape"
          ],
          "text": "Closes the list and keeps focus on the field."
        }
      ]
    }
  ],
  "size": {
    "gzip": 5352
  }
}
