@progress/kendo-react-scheduler
Version:
React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package
34 lines (33 loc) • 1.13 kB
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 { classNames as o } from "@progress/kendo-react-common";
import { Toolbar as d } from "@progress/kendo-react-buttons";
const u = e.forwardRef(
(r, s) => {
const { className: t, ...c } = r, a = e.useRef(null), l = e.useRef(null);
e.useImperativeHandle(l, () => ({ element: a.current, props: r })), e.useImperativeHandle(s, () => l.current);
const m = e.useMemo(() => o("k-scheduler-toolbar", t), [t]);
return /* @__PURE__ */ e.createElement(
d,
{
id: r.id,
ref: (n) => {
n && (a.current = n.element);
},
className: m,
...c
},
r.children
);
}
);
u.displayName = "KendoReactSchedulerHeader";
export {
u as SchedulerHeader
};