snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
18
apps/v4/examples/aria/scroll-fade-overflow.tsx
Normal file
18
apps/v4/examples/aria/scroll-fade-overflow.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
export function ScrollFadeOverflow() {
|
||||
return (
|
||||
<div className="mx-auto w-full max-w-xs overflow-hidden rounded-2xl border">
|
||||
<div className="scroll-fade scrollbar-none overflow-y-auto">
|
||||
<div className="flex flex-col gap-1.5 p-1.5">
|
||||
{Array.from({ length: 3 }, (_, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="rounded-lg bg-muted px-3 py-2.5 text-sm"
|
||||
>
|
||||
Item {index + 1}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user