0.0.1 • Published 7 years ago

react-antd-anchor v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

React-Anchor

A react version anchor, based on the antd

Style

The demo like this

Install

npm install react-anchor

Basic Usage

import React, { Component } from 'react';
import { render } from 'react-dom';
import ReactAnchor from 'react-anchor';

// Render editor
render(
  <ReactAnchor
    parentClassName="container"
    anchorList={navPanel}
    top={this.state.scrollTop}
    firstBlockTop={50}
    blockTotalHeight={400}
  />,
  document.getElementById('example')
);

Examples

Checkout the example directory for a working example using webpack.