Dev Design Library

Scroll Shadow

ScrollShadow is a component that adds shadow indicators to scrollable content to show overflow in different directions. It automatically detects scroll status and shows or hides shadows accordingly.

Scroll Shadow preview
Library
Lobe UI
Framework
React
Type
component
License
MIT
Install
pnpm add @lobehub/ui
Files
  • src/ScrollShadow/index.ts
  • src/ScrollShadow/ScrollShadow.tsx
  • src/ScrollShadow/stable.ts
  • src/ScrollShadow/style.ts
  • src/ScrollShadow/type.ts
  • src/ScrollShadow/useScrollOverflow.ts
  • src/Flex/index.ts
  • src/Flex/Center.tsx
Source
https://github.com/lobehub/lobe-ui

Categories

More from Lobe UI