Files
upstream-shadcn-ui/apps/v4/examples/base/scroll-fade-demo.tsx
upstream-mirror 1416db152c
All checks were successful
Release / Create Version PR or Publish Stable Release (push) Has been skipped
Release / Publish Prerelease to NPM (push) Has been skipped
Monitor Registries / Monitor registry health (push) Has been skipped
snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
2026-09-15 22:44:43 +05:00

19 lines
539 B
TypeScript

export function ScrollFadeDemo() {
return (
<div className="mx-auto w-full max-w-xs overflow-hidden rounded-2xl border">
<div className="h-72 scroll-fade scrollbar-none overflow-y-auto">
<div className="flex flex-col gap-1.5 p-1.5">
{Array.from({ length: 12 }, (_, index) => (
<div
key={index}
className="rounded-lg bg-muted px-3 py-2.5 text-sm"
>
Item {index + 1}
</div>
))}
</div>
</div>
</div>
)
}