@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
41 lines (40 loc) • 1.93 kB
TypeScript
import '@ui5/webcomponents/dist/ToolbarSelectOption.js';
import type { CommonProps, Ui5DomRef } from '@ui5/webcomponents-react-base';
import type { ReactNode } from 'react';
interface ToolbarSelectOptionAttributes {
/**
* Defines the selected state of the component.
* @default false
*/
selected?: boolean;
/**
* Defines the value of the component.
*
* **Note:** Available since [v2.25.0](https://github.com/UI5/webcomponents/releases/tag/v2.25.0) of **@ui5/webcomponents**.
* @default undefined
*/
value?: string | undefined;
}
interface ToolbarSelectOptionDomRef extends Required<ToolbarSelectOptionAttributes>, Ui5DomRef {
}
interface ToolbarSelectOptionPropTypes extends ToolbarSelectOptionAttributes, Omit<CommonProps, keyof ToolbarSelectOptionAttributes | 'children'> {
/**
* Defines the text of the component.
*
* **Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.
*
* __Supported Node Type/s:__ `Array<Node>`
*/
children?: ReactNode | ReactNode[];
}
/**
* The `ToolbarSelectOption` component defines the content of an option in the `ToolbarSelect`.
*
* __Note:__ This is a UI5 Web Component! [ToolbarSelectOption UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/ToolbarSelectOption) | [Repository](https://github.com/UI5/webcomponents)
*
* @since [1.17.0](https://github.com/UI5/webcomponents/releases/tag/v1.17.0) of __@ui5/webcomponents__.
* @abstract
*/
declare const ToolbarSelectOption: import("react").ForwardRefExoticComponent<ToolbarSelectOptionPropTypes & import("@ui5/webcomponents-react-base").WithWebComponentPropTypes & import("react").RefAttributes<ToolbarSelectOptionDomRef>>;
export { ToolbarSelectOption };
export type { ToolbarSelectOptionDomRef, ToolbarSelectOptionPropTypes };