BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/blacksite/scroll-area

Scroll area

blacksite/scroll-area
FreeComponent

Custom scrollbar styled to match dark surfaces.

Install it

npx shadcn@latest add https://blacksite.sh/r/scroll-area.json

Source

registry/blacksite/ui/scroll-area.tsxblacksite.sh/r/scroll-area.json
1"use client";
2
3import * as React from "react";
4import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
5
6import { cn } from "@/lib/utils";
7
8const ScrollArea = React.memo(
9 React.forwardRef<
10 React.ElementRef<typeof ScrollAreaPrimitive.Root>,
11 React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
12 >(({ className, children, ...props }, ref) => (
13 <ScrollAreaPrimitive.Root
14 ref={ref}
15 className={cn("relative overflow-hidden", className)}
16 {...props}
17 >
18 <ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">
19 {children}
20 </ScrollAreaPrimitive.Viewport>
21 <ScrollBar />
22 <ScrollAreaPrimitive.Corner />
23 </ScrollAreaPrimitive.Root>
24 )),
25);
26ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
27
28const ScrollBar = React.memo(
29 React.forwardRef<
30 React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
31 React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
32 >(({ className, orientation = "vertical", ...props }, ref) => (
33 <ScrollAreaPrimitive.ScrollAreaScrollbar
34 ref={ref}
35 orientation={orientation}
36 className={cn(
37 "flex touch-none transition-colors select-none",
38 orientation === "vertical" && "h-full w-1.5 border-l border-l-transparent p-[1px]",
39 orientation === "horizontal" && "h-1.5 flex-col border-t border-t-transparent p-[1px]",
40 className,
41 )}
42 {...props}
43 >
44 <ScrollAreaPrimitive.ScrollAreaThumb className="bg-border-strong hover:bg-foreground-subtle relative flex-1 rounded-full" />
45 </ScrollAreaPrimitive.ScrollAreaScrollbar>
46 )),
47);
48ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
49
50export { ScrollArea, ScrollBar };

Facts

Registry
blacksite
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
First indexed
2026-08-02
Last confirmed
today

Go to the source

blacksite.sh refrakts/blacksite-ui on GitHub Raw registry item This item as JSON

More from blacksite

All 25 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
App headerapp-headerblacksiteComponentsFreeno deps
BadgebadgeblacksiteComponentsFreeno deps
Bar chartbar-chartblacksiteComponentsFreeno deps
ButtonbuttonblacksiteComponentsFreeno deps
CardcardblacksiteComponentsFreeno deps
Chart tooltipchart-tooltipblacksiteComponentsFreeno deps
Data listdata-listblacksiteComponentsFreeno deps
Gantt timelinegantt-timelineblacksiteComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex