ai 2

Inset Scroll Area

Component

About

A scrollable container with a soft inner-shadow gradient at its edges to visually signal that content overflows and can be scrolled, available in soft, deep, top, bottom and frame edge variants.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Inset Scroll Area to your project and fits it to your theme.

Code

How Inset Scroll Area is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import ScrollAreaInset, {
  DeepInsetScrollArea,
  TopInsetScrollArea,
  BottomInsetScrollArea,
  FrameInsetScrollArea,
} from "@/components/ui/scroll-area-inset";

export default function ScrollAreaInsetDemo() {
  return (
    <div className="grid w-full max-w-3xl grid-cols-1 gap-6 p-6 sm:grid-cols-2">
      <ScrollAreaInset size="sm" />
      <DeepInsetScrollArea size="sm" />
      <TopInsetScrollArea size="sm" />
      <BottomInsetScrollArea size="sm" />
      <FrameInsetScrollArea size="sm" className="sm:col-span-2" />
    </div>
  );
}

More by ai 2

View all
  • Ripple Buttons

    Ripple Buttons

    33
  • Styled Toggle Switches

    Styled Toggle Switches

    21
  • Styled Progress Bars

    Styled Progress Bars

    17
  • Styled Badges

    Styled Badges

    15
  • Particle Toggles

    Particle Toggles

    14
  • OTP Pin Input

    OTP Pin Input

    12
  • File Input

    File Input

    11
  • Combo Kbd

    Combo Kbd

    11