jengacore.shadcn registry · Tailwind v4 · Radix and Base UI
Components
shadcn, restyled · @jengacore/scroll-area

Scroll Area

shadcn Scroll Area, restyled: jengacore focus ring, radii, card fill, navy scrim and shadow-pop.

Separate Radix and Base UI builds
  • tx_01J9ZK4000
  • tx_01J9ZK4037
  • tx_01J9ZK4074
  • tx_01J9ZK4111
  • tx_01J9ZK4148
  • tx_01J9ZK4185
  • tx_01J9ZK4222
  • tx_01J9ZK4259
  • tx_01J9ZK4296
  • tx_01J9ZK4333
  • tx_01J9ZK4370
  • tx_01J9ZK4407
  • tx_01J9ZK4444
  • tx_01J9ZK4481
  • tx_01J9ZK4518
  • tx_01J9ZK4555
  • tx_01J9ZK4592
  • tx_01J9ZK4629
  • tx_01J9ZK4666
  • tx_01J9ZK4703
  • tx_01J9ZK4740
  • tx_01J9ZK4777
  • tx_01J9ZK4814
  • tx_01J9ZK4851

Install

terminal
npx shadcn@latest add @jengacore/scroll-area

Without the namespace configured: npx shadcn@latest add https://ui.jengacore.com/r/<new-york-v4|base-nova>/scroll-area.json

Registry dependencies

npm packages

radix-ui

Source

components/ui/scroll-area.tsx
// jengacore: shadcn new-york/scroll-area, restyled by scripts/import-upstream.ts. Change the codemod, not this file.
"use client"

import * as React from "react"
import { cn } from "@/lib/utils"
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui"

function ScrollArea({
  className,
  children,
  ...props
}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {
  return (
    <ScrollAreaPrimitive.Root
      data-slot="scroll-area"
      className={cn("relative", className)}
      {...props}
    >
      <ScrollAreaPrimitive.Viewport
        data-slot="scroll-area-viewport"
        className="size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-ring"
      >
        {children}
      </ScrollAreaPrimitive.Viewport>
      <ScrollBar />
      <ScrollAreaPrimitive.Corner />
    </ScrollAreaPrimitive.Root>
  )
}

function ScrollBar({
  className,
  orientation = "vertical",
  ...props
}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {
  return (
    <ScrollAreaPrimitive.ScrollAreaScrollbar
      data-slot="scroll-area-scrollbar"
      orientation={orientation}
      className={cn(
        "flex touch-none p-px transition-colors select-none",
        orientation === "vertical" &&
          "h-full w-2.5 border-l border-l-transparent",
        orientation === "horizontal" &&
          "h-2.5 flex-col border-t border-t-transparent",
        className
      )}
      {...props}
    >
      <ScrollAreaPrimitive.ScrollAreaThumb
        data-slot="scroll-area-thumb"
        className="relative flex-1 rounded-full bg-border"
      />
    </ScrollAreaPrimitive.ScrollAreaScrollbar>
  )
}

export { ScrollArea, ScrollBar }