15 lines
462 B
TypeScript
15 lines
462 B
TypeScript
import type { HTMLAttributes } from "react";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export function ScrollArea({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
|
|
return <div className={cn(className)} {...props} />;
|
|
}
|
|
|
|
export function ScrollBar({
|
|
className,
|
|
orientation,
|
|
...props
|
|
}: HTMLAttributes<HTMLDivElement> & { orientation?: "horizontal" | "vertical" }) {
|
|
return <div data-orientation={orientation} className={cn(className)} {...props} />;
|
|
}
|