@progress/kendo-react-buttons
Version:
All you need in React Button in one package: disabled/enabled states, built-in styles and more. KendoReact Buttons package
26 lines (25 loc) • 979 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import * as e from "react";
import c from "prop-types";
import { classNames as l } from "@progress/kendo-react-common";
const s = e.forwardRef(
(r, t) => {
const a = e.useRef(null), m = e.useRef(null);
e.useImperativeHandle(m, () => ({ element: a.current })), e.useImperativeHandle(t, () => ({ element: a.current }));
const o = e.useMemo(() => l("k-spacer", r.className), [r.className]);
return /* @__PURE__ */ e.createElement("span", { ref: a, className: o });
}
);
s.displayName = "KendoReactToolbarSpacer";
s.propTypes = {
className: c.string
};
export {
s as ToolbarSpacer
};