@hydroperx/metrodesign
    Preparing search index...

    Function MenuTrigger

    • Trigger for buttons combined with popover menus.

      Parameters

      • params: {
            children?: ReactNode;
            className?: string;
            id?: string;
            prefer?: SimplePlacementType;
            style?: CSSProperties;
        }
        • Optionalchildren?: ReactNode
        • OptionalclassName?: string
        • Optionalid?: string
        • Optionalprefer?: SimplePlacementType

          Which placement to prefer for the menu to be placed at.

        • Optionalstyle?: CSSProperties

      Returns ReactNode

      <MenuTrigger>
      <Button>click me</Button>
      <PopoverMenu>
      <Item>
      <span></span>
      <Label>option a</Label>
      <span></span>
      </Item>
      </PopoverMenu>
      </MenuTrigger>