@hitachivantara/uikit-react-lab
Version:
Contributed React components to UI Kit by the community.
19 lines (18 loc) • 854 B
JavaScript
import { useClasses } from "./SidebarGroupItem.styles.js";
import { forwardRef } from "react";
import { HvTypography } from "@hitachivantara/uikit-react-core";
import { jsx, jsxs } from "react/jsx-runtime";
import { Drag } from "@hitachivantara/uikit-react-icons";
//#region src/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.tsx
var HvFlowSidebarGroupItem = forwardRef(function HvFlowSidebarGroupItem(props, ref) {
const { label, isDragging, classes: classesProp, className, ...others } = props;
const { classes, cx } = useClasses(classesProp);
return /* @__PURE__ */ jsxs("div", {
ref,
className: cx(classes.root, { [classes.dragging]: isDragging }, className),
...others,
children: [/* @__PURE__ */ jsx(HvTypography, { children: label }), /* @__PURE__ */ jsx(Drag, {})]
});
});
//#endregion
export { HvFlowSidebarGroupItem };