Free and open-source React scroll area components with token-styled scrollbars, fade edges and native, accessible scrolling. Styled with Tailwind CSS.
Preview
Code
Releases
Installation
CLI
Manual
npx properui@latest add scroll-areaHorizontal
Both axes
Fade edges
Usage notes
The viewport is a normal scrolling element: wheel, touch, keyboard and find-in-page all work, and it is focusable
(tabIndex={0}) and exposed as a labelled region, so pass aria-label or aria-labelledby. The custom scrollbars
are drawn on top and hidden from assistive technology. type="hover" shows them while the pointer is over the area or
it is scrolling, type="auto" whenever the content overflows, and type="always" all the time.