https://github.com/pansyjs/custom-scrollbar
自定义您的滚动条样式
https://github.com/pansyjs/custom-scrollbar
component custom-scrollbar react scrollbar
Last synced: 20 days ago
JSON representation
自定义您的滚动条样式
- Host: GitHub
- URL: https://github.com/pansyjs/custom-scrollbar
- Owner: pansyjs
- Created: 2023-10-10T15:09:12.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-23T04:12:08.000Z (about 2 years ago)
- Last Synced: 2024-05-23T04:31:51.557Z (about 2 years ago)
- Topics: component, custom-scrollbar, react, scrollbar
- Language: TypeScript
- Homepage:
- Size: 77.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
@pansy/custom-scrollbar-react
自定义您的滚动条样式。
## 🏗 安装
```sh
# npm install
$ npm install @pansy/custom-scrollbar-react --save
# yarn install
$ yarn add @pansy/custom-scrollbar-react
# pnpm install
$ pnpm i @pansy/custom-scrollbar-react
```
## 🔨 使用
```tsx
import CustomScrollbar from '@pansy/custom-scrollbar-react';
import '@pansy/custom-scrollbar-react/scrollbar.less';
export default () => {
return (
123
124
123
124
123
124
123
124
123
124
123
124
123
124
)
}
```