UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

41 lines (40 loc) 1.99 kB
import '@ui5/webcomponents/dist/ToolbarSpacer.js'; import type ToolbarItemOverflowBehavior from '@ui5/webcomponents/dist/types/ToolbarItemOverflowBehavior.js'; import type { CommonProps, Ui5DomRef } from '../../types/index.js'; 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 intereaction 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! [Repository](https://github.com/SAP/ui5-webcomponents) | [Documentation](https://sap.github.io/ui5-webcomponents/) * * @since [1.17.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.17.0) of __@ui5/webcomponents__. * @abstract */ declare const ToolbarSpacer: import("react").ForwardRefExoticComponent<ToolbarSpacerPropTypes & import("../../internal/withWebComponent.js").WithWebComponentPropTypes & import("react").RefAttributes<ToolbarSpacerDomRef>>; export { ToolbarSpacer }; export type { ToolbarSpacerDomRef, ToolbarSpacerPropTypes };