/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Toolbar
 */
import * as React from "react";
import { Toolbar } from "./Toolbar.js";
/** Component that displays toolbar items, displaying only the elements that can fit in the available space,
 * and put the other items into a single panel.
 * @beta
 */
export function ToolbarWithOverflow(props) {
    const { overflowExpandsTo, ...toolbarProps } = props;
    return React.createElement(Toolbar, { enableOverflow: { overflowExpandsTo }, ...toolbarProps });
}
//# sourceMappingURL=ToolbarWithOverflow.js.map