0.1.32 • Published 6 months ago

anchor-g v0.1.32

Weekly downloads
76
License
MIT
Repository
github
Last release
6 months ago

anchor-g


Anchor component based on antd with React

NPM version

Screenshot

Demo

online example: https://favori.gitee.io/gantd-landing (CodePen)

install

rc-tabs

Feature

  • Can switch to the top
  • Support magnetic absorption effect
  • Anchor item with completion status

Usage

import React from 'react';
import Anchor from 'anchor-g';

function BasicUse() {
  const list = [
    {
      id: 'horbasic1',
      title: 'title_1',
      complete: true
    },
    {
      id: 'horbasic2',
      title: 'title_2',
    },
    {
      id: 'horbasic3',
      title: 'title_3',
      complete: false
    }
  ]
  const style = {
    display: 'flex',
    justifyContent: 'center',
    alignItems:'center',
    height: 400,
    fontSize:24,
    border:'1px solid rgba(128,128,128,0.1)'
  }
  return (
    <>
      <Anchor
        list={list}
        minHeight={800}
        content={
          <div>
            <div id='horbasic1' style={style}>content_1</div>
            <div id='horbasic2' style={style}>content_2</div>
            <div id='horbasic3' style={style}>content_3</div>
          </div>
        }
      />
    </>
  )
}

React.render(<BasicUse/>, mountNode);

API

Documentation

Contact

Anthor

GantFDT

License

MIT

0.1.31

6 months ago

0.1.32

6 months ago

0.1.30

3 years ago

0.1.29

3 years ago

0.1.27

3 years ago

0.1.28

3 years ago

0.1.26

3 years ago

0.1.25

3 years ago

0.1.23

3 years ago

0.1.24

3 years ago

0.1.21

3 years ago

0.1.22

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

4 years ago

0.1.16

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.18

4 years ago

0.0.15

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.1

4 years ago