项目
在 GitHub 查看
SameerJS6/lina
关于
Drop-in shadcn/ui ScrollArea replacement (Radix/Base UI) with native touch, adaptive masks, and polished interactions.
网站与应用开发可以做什么
- Adaptive mask - Subtle edge fades appear only when content is scrollable and adapt in real time to scroll position, axis, and container shape.
- Micro‑interactions - Hover/press effects for the custom scrollbar on non‑touch (desktop) devices, with responsive thumb behavior.
- Native touch optimization - Uses the right touch‑action, momentum scrolling, and passive listeners so scrolling feels truly native on iOS/Android while staying precise on desktop.
- Drop‑in replacement - Matches shadcn/ui's ScrollArea API, same props, slots, and className ergonomics—so you can swap it in with zero extra step.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 0
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Lina
The Adaptive Scroll Area for Modern UIs
A responsive scroll area that feels native on touch devices, offering custom styling and enhanced interactions where it matters most.
Lina is a drop‑in replacement for shadcn/ui's ScrollArea with better defaults and a more native feel.

Features
- Adaptive mask - Subtle edge fades appear only when content is scrollable and adapt in real time to scroll position, axis, and container shape.
- Micro‑interactions - Hover/press effects for the custom scrollbar on non‑touch (desktop) devices, with responsive thumb behavior.
- Native touch optimization - Uses the right touch‑action, momentum scrolling, and passive listeners so scrolling feels truly native on iOS/Android while staying precise on desktop.
- Drop‑in replacement - Matches shadcn/ui's
ScrollAreaAPI, same props, slots, andclassNameergonomics—so you can swap it in with zero extra step. - Radix and Base UI variants - Choose Radix or Base UI primitives while keeping a consistent API and visual design.
Installation
npx shadcn@latest add https://lina.sameer.sh/r/lina-radix.json
Usage
import { ScrollArea } from "@/components/ui/scroll-area";
export default function Example() {
return (
<ScrollArea className="h-[200px] w-[350px] rounded-md border p-4">
Jokester began sneaking into the castle in the middle of the night and leaving jokes all over the place: under the
king's pillow, in his soup, even in the royal toilet. The king was furious, but he couldn't seem to stop Jokester.
And then, one day, the people of the kingdom discovered that the jokes left by Jokester were so funny that they
couldn't help but laugh. And once they started laughing, they couldn't stop.
</ScrollArea>
);
}
Documentation
Visit Docs
Credits
Built on top of:
License
MIT
探索相关项目
加载中…