UNPKG

@progress/kendo-react-gantt

Version:

React Gantt enables the display of self-referencing tabular data with many features. KendoReact Gantt package

31 lines (30 loc) 1.08 kB
/** * @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 { classNames as c } from "@progress/kendo-react-common"; import { Toolbar as u } from "@progress/kendo-react-buttons"; const f = e.forwardRef((t, n) => { const { className: a, ...s } = t, r = e.useRef(null), o = e.useRef(null); e.useImperativeHandle(o, () => ({ element: r.current, props: t })), e.useImperativeHandle(n, () => o.current); const m = e.useMemo(() => c("k-gantt-toolbar k-gantt-header", a), [a]); return /* @__PURE__ */ e.createElement( u, { ref: (l) => { l && (r.current = l.element); }, className: m, ...s }, t.children ); }); f.displayName = "KendoReactGanttToolbar"; export { f as Toolbar };