{
  "$schema": "https://registry.ui.frontic.com/item.schema.json",
  "title": "Combobox",
  "description": "Searchable single-choice list behind a trigger, with headed groups and an empty state; the list is as wide as its trigger, and the trigger joins a Field as its control.",
  "components": {
    "Combobox": "Groups all parts of the combobox, which lets the user search and pick an option.",
    "ComboboxAnchor": "Marks where the option list attaches, wrapping the input and trigger.",
    "ComboboxEmpty": "Shows a message when no option matches the search.",
    "ComboboxGroup": "Groups related options in the combobox list.",
    "ComboboxInput": "Lets the user type to filter the combobox options.",
    "ComboboxItem": "Holds one option the user can pick from the combobox.",
    "ComboboxItemIndicator": "Marks an option as selected in the combobox list.",
    "ComboboxList": "Holds the options the combobox offers while it is open.",
    "ComboboxSeparator": "Separates groups of options in the combobox list; hidden while a search filters the list.",
    "ComboboxTrigger": "Shows the chosen option and opens the combobox list when pressed.",
    "ComboboxViewport": "Scrolls the options when the combobox list is longer than the space available."
  },
  "recipes": {
    "combobox-anchor": {
      "base": {
        "display": "inline-flex",
        "width": "fit"
      }
    },
    "combobox-chevron": {
      "base": {
        "textColor": "{colors.muted-foreground}",
        "size": "{spacing.3.5}"
      }
    },
    "combobox-content": {
      "base": {
        "extends": "overlay",
        "minWidth": "{spacing.36}",
        "display": "flex",
        "flexDirection": "column",
        "width": "trigger"
      }
    },
    "combobox-empty": {
      "base": {
        "typography": "{typography.small}",
        "textColor": "{colors.muted-foreground}",
        "paddingY": "{spacing.2}",
        "textAlign": "center"
      }
    },
    "combobox-input": {
      "composes": ["disabled"],
      "base": {
        "flex": "1"
      }
    },
    "combobox-item": {
      "composes": ["disabled"],
      "base": {
        "extends": "option-item",
        "gap": "{spacing.2.5}",
        "paddingY": "{spacing.2}",
        "paddingStart": "{spacing.3}",
        "paddingEnd": "{spacing.8}",
        "display": "flex",
        "width": "full",
        "alignItems": "center",
        "icon": {
          "size": "{spacing.3.5}"
        }
      }
    },
    "combobox-item-indicator": {
      "base": {
        "size": "{spacing.4}",
        "display": "flex",
        "alignItems": "center",
        "justifyContent": "center"
      }
    },
    "combobox-label": {
      "base": {
        "extends": "menu-label",
        "paddingX": "{spacing.3}",
        "paddingY": "{spacing.2}"
      }
    },
    "combobox-search": {
      "base": {
        "marginX": "{spacing.1.5}",
        "marginTop": "{spacing.1.5}",
        "typography": "{typography.small}",
        "height": "{spacing.8}",
        "paddingX": "{spacing.2.5}",
        "gap": "{spacing.2}",
        "icon": {
          "size": "{spacing.3.5}"
        }
      }
    },
    "combobox-separator": {
      "base": {
        "bleedX": "{spacing.1.5}",
        "marginY": "{spacing.1.5}",
        "extends": "divider",
        "backgroundColor": "{colors.border/50}",
        "height": "{spacing.px}"
      }
    },
    "combobox-trigger": {
      "composes": ["disabled"],
      "base": {
        "extends": ["control", "control-line"],
        "typography": "{typography.small}",
        "gap": "{spacing.1.5}",
        "paddingX": "{spacing.0}",
        "paddingY": "{spacing.2}",
        "height": "{spacing.10}",
        "display": "flex",
        "width": "fit",
        "alignItems": "center",
        "justifyContent": "between",
        "icon": {
          "size": "{spacing.3.5}"
        }
      }
    },
    "combobox-viewport": {
      "base": {
        "scrollbar": "none",
        "minHeight": "{spacing.0}",
        "padding": "{spacing.1.5}"
      }
    }
  }
}
