{
  "$schema": "https://registry.ui.frontic.com/item.schema.json",
  "title": "Context Menu",
  "description": "A menu that opens on right-click, with actions, checkbox and radio items, labelled groups and destructive entries.",
  "components": {
    "ContextMenu": "Groups all parts of the context menu, which opens on right-click.",
    "ContextMenuCheckboxItem": "Lets the user switch an option on or off from the menu.",
    "ContextMenuContent": "Holds the items the context menu shows while open.",
    "ContextMenuGroup": "Groups related items in the context menu.",
    "ContextMenuItem": "Holds one action the user can pick from the context menu.",
    "ContextMenuLabel": "Labels a group of items in the context menu.",
    "ContextMenuPortal": "Places the menu content above the rest of the page.",
    "ContextMenuRadioGroup": "Groups radio items so the user can pick exactly one.",
    "ContextMenuRadioItem": "Lets the user choose one option from a group in the menu.",
    "ContextMenuSeparator": "Separates groups of items in the context menu.",
    "ContextMenuShortcut": "Shows the keyboard shortcut for a menu item.",
    "ContextMenuSub": "Groups a submenu trigger with the submenu it opens.",
    "ContextMenuSubContent": "Holds the items of a submenu while it is open.",
    "ContextMenuSubTrigger": "Opens a submenu from an item of the context menu.",
    "ContextMenuTrigger": "Marks the area where a right-click opens the context menu."
  },
  "recipes": {
    "context-menu": {
      "composes": ["focus-ring"]
    },
    "context-menu-content": {
      "base": {
        "extends": "overlay",
        "minWidth": "{spacing.48}",
        "padding": "{spacing.1.5}"
      }
    },
    "context-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"
      }
    },
    "context-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"
      }
    },
    "context-menu-separator": {
      "base": {
        "bleedX": "{spacing.1.5}",
        "marginY": "{spacing.1.5}",
        "extends": "divider",
        "backgroundColor": "{colors.border/50}",
        "height": "{spacing.px}"
      }
    },
    "context-menu-shortcut": {
      "base": {
        "extends": "menu-shortcut",
        "marginStart": "auto"
      }
    },
    "context-menu-sub-content": {
      "base": {
        "extends": "overlay",
        "shadow": "{shadow.md}",
        "minWidth": "{spacing.32}",
        "padding": "{spacing.1.5}"
      }
    },
    "context-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"
      }
    }
  }
}
