New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vj-top

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vj-top

基于react的简单返回顶部按钮

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

vj-top

基于react的简单返回顶部按钮

安装

$ npm i vj-top -S

API

Top props

namedescriptiontypedefaultsince
className按钮的classString''0.0.3
style按钮的内联样式Object{}0.0.3
threshold触发按钮显示的top距离Number3000.0.2
bottom按钮离底部的距离(0.0.2 之后废弃)Number''0.0.1

示例


import React, { Component } from 'react';

import Top from 'vj-top';

class Example extends Component {
  constructor(props) {
    super(props);
  };
  render() {
    return (
      <div>
        <div style={{height: '2000px'}}></div>
        <Top />
      </div>
    );
  };
};

export default Example;

FAQs

Package last updated on 27 Jul 2017

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