Documentation
ModScrollbar
Generic mod scrollbar: 12-wide groove track plus 12×15 thumb.
import { ModScrollbar } from "./index";
export function ModScrollbarDemo() {
return (
<div className="relative h-24 w-8">
<ModScrollbar height={64} left={0} top={0} value={0.4} />
</div>
);
}
Install
$pnpm add @tennantite/commonnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/mods-core/src/shared/mod-scrollbar/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.