@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
29 lines (28 loc) • 944 B
TypeScript
/**
* MSKCC DSM 2021, 2023
*/
import React from 'react';
export declare const translationIds: {
'close.menu': string;
'open.menu': string;
};
export interface ListBoxMenuIconProps {
/**
* Specify whether the menu is currently open, which will influence the
* direction of the menu icon
*/
isOpen: boolean;
/**
* i18n hook used to provide the appropriate description for the given menu
* icon. This function takes in an id defined in `translationIds` and should
* return a string message for that given message id.
*/
translateWithId?(messageId: string, args?: Record<string, unknown>): string;
}
export type ListBoxMenuIconComponent = React.FC<ListBoxMenuIconProps>;
/**
* `ListBoxMenuIcon` is used to orient the icon up or down depending on the
* state of the menu for a given `ListBox`
*/
declare const ListBoxMenuIcon: ListBoxMenuIconComponent;
export default ListBoxMenuIcon;