Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bee-backtop

Package Overview
Dependencies
Maintainers
15
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-backtop

Backtop ui component for react

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
15
Created
Source

bee-backtop

npm version Build Status Coverage Status devDependency Status NPM downloads Average time to resolve an issue Percentage of issues still open

react bee-backtop component for tinper-bee

返回顶部

使用方法

import BackTop from 'bee-backtop';

class BackTopDemo extends Component {
    render() {
        return (
            <BackTop/>
        )
    }
}
样式引入
  • 可以使用link引入build目录下BackTop.css
<link rel="stylesheet" href="./node_modules/bee-backtop/build/BackTop.css">
  • 可以在js中import样式
import "./node_modules/bee-backtop/src/BackTop.scss"
//或是
import "./node_modules/bee-backtop/build/BackTop.css"

API

参数说明类型默认值
visibilityHeight当滚动条高度达到多少显示backtopnumber400
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

Keywords

FAQs

Package last updated on 24 Apr 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc