DEV Community

Cover image for Lina: Adaptive Scroll Area for React with Native Touch Support
jQueryScript
jQueryScript

Posted on

Lina: Adaptive Scroll Area for React with Native Touch Support

Lina: A shadcn/ui ScrollArea replacement that actually adapts to your input method.

Key features:

🎯 Detects touch vs pointer and switches between native scrolling and custom scrollbars

🌫️ Edge masks that appear only when content overflows

πŸ–±οΈ Hover and press effects for desktop scrollbars

πŸ“± Proper momentum scrolling and touch action on mobile

πŸ”„ Drop-in replacement for existing ScrollArea components

🧩 Works with both Radix UI and Base UI

Install through shadcn CLI in one command. No config changes needed if you're already using ScrollArea. Just swap the import and you're done.

πŸ‘‰ Blog Post

πŸ‘‰ GitHub Repo

πŸ‘‰ Live Demo

Top comments (0)