UNPKG

@shopify/polaris

Version:

Shopify’s admin product component library

16 lines (15 loc) 753 B
/// <reference types="react" /> import { MenuActionDescriptor, MenuGroupDescriptor } from '../../types'; export interface ActionMenuProps { /** Collection of page-level secondary actions */ actions?: MenuActionDescriptor[]; /** Collection of page-level action groups */ groups?: MenuGroupDescriptor[]; /** Roll up all actions into a Popover > ActionList */ rollup?: boolean; /** Label for rolled up actions activator */ rollupActionsLabel?: string; } export declare function ActionMenu({ actions, groups, rollup, rollupActionsLabel, }: ActionMenuProps): JSX.Element | null; export declare function hasGroupsWithActions(groups?: ActionMenuProps['groups']): boolean; //# sourceMappingURL=ActionMenu.d.ts.map