UNPKG

@carbon/ibm-products

Version:
67 lines 2.28 kB
import React, { PropsWithChildren, ReactElement, ForwardedRef } from 'react'; import PropTypes from 'prop-types'; import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon'; type OverflowItem = { label: string; onClick: () => void; renderIcon: CarbonIconType; }; interface ActionBarOverflowItemProps extends PropsWithChildren { /** * className */ className?: string; /** * class name applied to the overflow options */ menuOptionsClass?: string; /** * overflowAriaLabel label for open close button overflow used for action bar items that do not fit. */ overflowAriaLabel?: string; /** * overflowMenuRef for the overflow menu width that is needed to calculate the width of the action bar with overflow */ overflowMenuRef?: ForwardedRef<HTMLDivElement>; /** * overflowItems: items to bre shown in the ActionBar overflow menu */ overflowItems?: ReactElement<OverflowItem>[]; /** * Optional tab index */ tabIndex?: number; } export declare const ActionBarOverflowItems: { ({ className, menuOptionsClass, overflowItems, overflowAriaLabel, overflowMenuRef, }: ActionBarOverflowItemProps): React.JSX.Element; displayName: string; propTypes: { /** * className */ className: PropTypes.Requireable<string>; /** * class name applied to the overflow options */ menuOptionsClass: PropTypes.Requireable<string>; /** * overflowAriaLabel label for open close button overflow used for action bar items that do nto fit. */ overflowAriaLabel: PropTypes.Requireable<string>; /** * overflowItems: items to bre shown in the ActionBar overflow menu */ overflowItems: PropTypes.Requireable<PropTypes.ReactElementLike[]>; /** * overflowMenuRef for the overflow menu width that is needed to calculate the width of the action bar with overflow */ /**@ts-ignore */ overflowMenuRef: PropTypes.Requireable<object>; /** * Optional tab index */ tabIndex: PropTypes.Requireable<number>; }; }; export {}; //# sourceMappingURL=ActionBarOverflowItems.d.ts.map