{
  "$schema": "https://registry.ui.frontic.com/item.schema.json",
  "title": "Dropdown Menu",
  "description": "A menu that opens from a button, with actions, checkbox and radio items, labelled groups and destructive entries, such as account or sort options.",
  "components": {
    "DropdownMenu": "Groups all parts of the dropdown menu.",
    "DropdownMenuCheckboxItem": "Lets the user switch an option on or off from the menu.",
    "DropdownMenuContent": "Holds the entries the dropdown menu shows while open.",
    "DropdownMenuGroup": "Groups related entries of the dropdown menu.",
    "DropdownMenuItem": "Holds one action the user can pick from the dropdown menu.",
    "DropdownMenuLabel": "Labels a group of entries in the dropdown menu.",
    "DropdownMenuPortal": "Places the menu content above the rest of the page.",
    "DropdownMenuRadioGroup": "Groups radio items so the user can pick exactly one.",
    "DropdownMenuRadioItem": "Lets the user choose one option from a group in the menu.",
    "DropdownMenuSeparator": "Separates groups of entries in the dropdown menu.",
    "DropdownMenuShortcut": "Shows the keyboard shortcut for a menu item.",
    "DropdownMenuSub": "Groups a submenu trigger with the nested menu it opens.",
    "DropdownMenuSubContent": "Holds the entries the submenu shows while open.",
    "DropdownMenuSubTrigger": "Opens a submenu from an item of the dropdown menu.",
    "DropdownMenuTrigger": "Opens and closes the dropdown menu."
  },
  "recipes": {
    "dropdown-menu-content": {
      "base": {
        "extends": "overlay",
        "minWidth": "{spacing.48}",
        "padding": "{spacing.1.5}",
        "width": "trigger"
      }
    },
    "dropdown-menu-item": {
      "composes": ["disabled"],
      "base": {
        "extends": "menu-item",
        "gap": "{spacing.2.5}",
        "paddingY": "{spacing.2}",
        "display": "flex",
        "alignItems": "center",
        "icon": {
          "size": "{spacing.3.5}"
        }
      },
      "variants": {
        "color": {
          "destructive": {
            "extends": "menu-item-destructive"
          }
        },
        "pad": {
          "default": {
            "paddingX": "{spacing.3}"
          },
          "inset": {
            "paddingStart": "{spacing.9.5}",
            "paddingEnd": "{spacing.3}"
          },
          "indicator": {
            "paddingStart": "{spacing.3}",
            "paddingEnd": "{spacing.8}"
          }
        }
      },
      "defaults": {
        "pad": "default"
      }
    },
    "dropdown-menu-label": {
      "base": {
        "extends": "menu-label",
        "paddingY": "{spacing.2}"
      },
      "variants": {
        "pad": {
          "default": {
            "paddingX": "{spacing.3}"
          },
          "inset": {
            "paddingStart": "{spacing.9.5}",
            "paddingEnd": "{spacing.3}"
          }
        }
      },
      "defaults": {
        "pad": "default"
      }
    },
    "dropdown-menu-separator": {
      "base": {
        "bleedX": "{spacing.1.5}",
        "marginY": "{spacing.1.5}",
        "extends": "divider",
        "backgroundColor": "{colors.border/50}",
        "height": "{spacing.px}"
      }
    },
    "dropdown-menu-shortcut": {
      "base": {
        "extends": "menu-shortcut",
        "marginStart": "auto"
      }
    },
    "dropdown-menu-sub-content": {
      "base": {
        "extends": "overlay",
        "minWidth": "{spacing.36}",
        "padding": "{spacing.1.5}",
        "maxWidth": "available"
      }
    },
    "dropdown-menu-sub-trigger": {
      "base": {
        "extends": "menu-item",
        "gap": "{spacing.2.5}",
        "paddingY": "{spacing.2}",
        "display": "flex",
        "alignItems": "center",
        "icon": {
          "size": "{spacing.3.5}"
        },
        "open": {
          "backgroundColor": "{colors.accent}",
          "textColor": "{colors.accent-foreground}"
        }
      },
      "variants": {
        "pad": {
          "default": {
            "paddingX": "{spacing.3}"
          },
          "inset": {
            "paddingStart": "{spacing.9.5}",
            "paddingEnd": "{spacing.3}"
          }
        }
      },
      "defaults": {
        "pad": "default"
      }
    }
  }
}
