Card compact and expanded template

This commit is contained in:
adilallo committed 2026-02-11 22:02:10 -07:00
1 parent f60df15c2b
commit b2ed1d438c
44 files changed
+1920 -48

No files matched your search

@@ -0,0 +1,23 @@
"use client";
import type { ScrollbarProps } from "./Scrollbar.types";
const overflowClass = {
vertical: "overflow-x-clip overflow-y-auto",
horizontal: "overflow-y-clip overflow-x-auto",
both: "overflow-auto",
} as const;
export function ScrollbarView({
children,
className = "",
orientation = "vertical",
}: ScrollbarProps) {
return (
<div
className={`scrollbar-design ${overflowClass[orientation]} ${className}`.trim()}
>
{children}
</div>
);
}