Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
bee-backtop
Advanced tools
react bee-backtop component for tinper-bee
返回顶部
import BackTop from 'bee-backtop';
class BackTopDemo extends Component {
render() {
return (
<BackTop/>
)
}
}
<link rel="stylesheet" href="./node_modules/bee-backtop/build/BackTop.css">
import "./node_modules/bee-backtop/src/BackTop.scss"
//或是
import "./node_modules/bee-backtop/build/BackTop.css"
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
visibilityHeight | 当滚动条高度达到多少显示backtop | number | 400 |
target | 设置要监听滚动事件的元素 | function | () => window |
click | 点击backTop时的回调函数 | function | - |
character | 自定义字符 | ReactNode /string |
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-backtop
$ cd bee-backtop
$ npm install
$ npm run dev
FAQs
Backtop ui component for react
We found that bee-backtop demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.