This component no longer exists. It was in gmhlab’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-09 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
scroll-area
gmhlab/scroll-areaRemovedComponent
gmhlab publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/gmhlab/monorepo/main/packages/ui/public/r/scroll-area.jsonSource
1import * as React from "react"2import { ScrollArea as ScrollAreaPrimitive } from "radix-ui"34import { cn } from "@/lib/utils"56function ScrollArea({7 className,8 children,9 ...props10}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {11 return (12 <ScrollAreaPrimitive.Root13 data-slot="scroll-area"14 className={cn("relative", className)}15 {...props}16 >17 <ScrollAreaPrimitive.Viewport18 data-slot="scroll-area-viewport"19 className="focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1"20 >21 {children}22 </ScrollAreaPrimitive.Viewport>23 <ScrollBar />24 <ScrollAreaPrimitive.Corner />25 </ScrollAreaPrimitive.Root>26 )27}2829function ScrollBar({30 className,31 orientation = "vertical",32 ...props33}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {34 return (35 <ScrollAreaPrimitive.ScrollAreaScrollbar36 data-slot="scroll-area-scrollbar"37 orientation={orientation}38 className={cn(39 "flex touch-none p-px transition-colors select-none",40 orientation === "vertical" &&41 "h-full w-2.5 border-l border-l-transparent",42 orientation === "horizontal" &&43 "h-2.5 flex-col border-t border-t-transparent",44 className45 )}46 {...props}47 >48 <ScrollAreaPrimitive.ScrollAreaThumb49 data-slot="scroll-area-thumb"50 className="bg-border relative flex-1 rounded-full"51 />52 </ScrollAreaPrimitive.ScrollAreaScrollbar>53 )54}5556export { ScrollArea, ScrollBar }
What it pulls in
npm packages
