UNPKG

@scrolia/vanilla

Version:

A headless scrollbar component

18 lines (16 loc) 525 B
import { useScrollCore } from "../../contexts/scrollcore.mjs"; import { useComponentPropsSetter } from "../../hooks/props.mjs"; import * as Atom from "atomico"; import { jsx } from "atomico/jsx-runtime"; const _Content = () => { const { contentRef } = useScrollCore(); useComponentPropsSetter("content"); return /* @__PURE__ */ jsx("host", { shadowDom: true, ref: contentRef, children: /* @__PURE__ */ jsx("slot", {}) }); }; const Content = Atom.c(_Content); export { Content }; //# sourceMappingURL=index.mjs.map