@carbon/react
Version:
React components for the Carbon Design System
27 lines (26 loc) • 990 B
TypeScript
/**
* Copyright IBM Corp. 2016, 2025
*
* 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 type { TranslateWithId } from '../../../types/common';
declare const translationIds: {
readonly 'close.menu': "close.menu";
readonly 'open.menu': "open.menu";
};
type TranslationKey = keyof typeof translationIds;
export interface ListBoxTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, TranslateWithId<TranslationKey> {
/**
* Specify whether the menu is currently open, which will influence the
* direction of the menu icon
*/
isOpen: boolean;
}
/**
* `ListBoxTrigger` is used to orient the icon up or down depending on the
* state of the menu for a given `ListBox`
*/
declare const ListBoxTrigger: React.ForwardRefExoticComponent<ListBoxTriggerProps & React.RefAttributes<HTMLButtonElement>>;
export default ListBoxTrigger;