@carbon/react
Version:
React components for the Carbon Design System
24 lines (23 loc) • 862 B
TypeScript
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { TranslateWithId } from '../../types/common';
export type ListBoxMenuIconTranslationKey = 'close.menu' | 'open.menu';
export interface ListBoxMenuIconProps extends TranslateWithId<ListBoxMenuIconTranslationKey> {
/**
* Specify whether the menu is currently open, which will influence the
* direction of the menu icon
*/
isOpen: boolean;
}
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;