@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
41 lines (40 loc) • 2.03 kB
TypeScript
import '@ui5/webcomponents/dist/ToolbarSpacer.js';
import type ToolbarItemOverflowBehavior from '@ui5/webcomponents/dist/types/ToolbarItemOverflowBehavior.js';
import type { CommonProps, Ui5DomRef } from '@ui5/webcomponents-react-base';
interface ToolbarSpacerAttributes {
/**
* Property used to define the access of the item to the overflow Popover. If "NeverOverflow" option is set,
* the item never goes in the Popover, if "AlwaysOverflow" - it never comes out of it.
* @default "Default"
*/
overflowPriority?: ToolbarItemOverflowBehavior | keyof typeof ToolbarItemOverflowBehavior;
/**
* Defines if the toolbar overflow popup should close upon interaction with the item.
* It will close by default.
* @default false
*/
preventOverflowClosing?: boolean;
/**
* Defines the width of the spacer.
*
* **Note:** all CSS sizes are supported - 'percentage', 'px', 'rem', 'auto', etc.
* @default undefined
*/
width?: string | undefined;
}
interface ToolbarSpacerDomRef extends Required<ToolbarSpacerAttributes>, Ui5DomRef {
}
interface ToolbarSpacerPropTypes extends ToolbarSpacerAttributes, Omit<CommonProps, keyof ToolbarSpacerAttributes> {
}
/**
* The `ToolbarSpacer` is an element, used for taking needed space for toolbar items to take 100% width.
* It takes no space in calculating toolbar items width.
*
* __Note:__ This is a UI5 Web Component! [ToolbarSpacer UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/ToolbarSpacer) | [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 ToolbarSpacer: import("react").ForwardRefExoticComponent<ToolbarSpacerPropTypes & import("@ui5/webcomponents-react-base").WithWebComponentPropTypes & import("react").RefAttributes<ToolbarSpacerDomRef>>;
export { ToolbarSpacer };
export type { ToolbarSpacerDomRef, ToolbarSpacerPropTypes };