skyroc-ui
Version:
A modern React UI component library built on Radix UI and Tailwind CSS
22 lines (20 loc) • 700 B
JavaScript
import { cn } from "../../lib/utils.js";
import { scrollAreaVariants } from "./scroll-area-variants.js";
import { forwardRef } from "react";
import { jsx } from "react/jsx-runtime";
import { Root } from "@radix-ui/react-scroll-area";
//#region src/components/scroll-area/ScrollAreaRoot.tsx
const ScrollAreaRoot = forwardRef((props, ref) => {
const { className,...rest } = props;
const { root } = scrollAreaVariants();
const mergedCls = cn(root(), className);
return /* @__PURE__ */ jsx(Root, {
className: mergedCls,
...rest,
ref
});
});
ScrollAreaRoot.displayName = "ScrollAreaRoot";
var ScrollAreaRoot_default = ScrollAreaRoot;
//#endregion
export { ScrollAreaRoot_default as default };