@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
41 lines (40 loc) • 1.92 kB
TypeScript
import '@ui5/webcomponents/dist/SuggestionItem.js';
import type { ListItemBaseClickEventDetail } from '@ui5/webcomponents/dist/ListItemBase.js';
import type { CommonProps, Ui5CustomEvent, Ui5DomRef } from '@ui5/webcomponents-react-base';
interface SuggestionItemAttributes {
/**
* Defines the `additionalText`, displayed in the end of the item.
* @default undefined
*/
additionalText?: string | undefined;
/**
* Defines the text of the component.
* @default undefined
*/
text?: string | undefined;
}
interface SuggestionItemDomRef extends Required<SuggestionItemAttributes>, Ui5DomRef {
}
interface SuggestionItemPropTypes extends SuggestionItemAttributes, Omit<CommonProps, keyof SuggestionItemAttributes | 'onClick'> {
/**
* Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.
*
* **Note:** The event will not be fired if the `disabled` property is set to `true`.
*
* **Note:** Available since [v2.23.0](https://github.com/UI5/webcomponents/releases/tag/v2.23.0) of **@ui5/webcomponents**.
*
* | cancelable | bubbles |
* | :--------: | :-----: |
* | ❌|✅|
*/
onClick?: (event: Ui5CustomEvent<SuggestionItemDomRef, ListItemBaseClickEventDetail>) => void;
}
/**
* The `SuggestionItem` represents the suggestion item of the `Input`.
*
* __Note:__ This is a UI5 Web Component! [SuggestionItem UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/SuggestionItem) | [Repository](https://github.com/UI5/webcomponents)
* @abstract
*/
declare const SuggestionItem: import("react").ForwardRefExoticComponent<SuggestionItemPropTypes & import("@ui5/webcomponents-react-base").WithWebComponentPropTypes & import("react").RefAttributes<SuggestionItemDomRef>>;
export { SuggestionItem };
export type { SuggestionItemDomRef, SuggestionItemPropTypes };