Blame view

天文台pc/tianwentai-ui/node_modules/react-popper/README.md 2.44 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
  # React Popper
  
  [![Unit Tests](https://github.com/popperjs/react-popper/workflows/Unit%20Tests/badge.svg)](https://github.com/popperjs/react-popper/actions?query=workflow%3A%22Unit+Tests%22)
  [![npm version](https://img.shields.io/npm/v/react-popper.svg)](https://www.npmjs.com/package/react-popper)
  [![npm downloads](https://img.shields.io/npm/dm/react-popper.svg)](https://www.npmjs.com/package/react-popper)
  [![Dependency Status](https://david-dm.org/souporserious/react-popper.svg)](https://david-dm.org/souporserious/react-popper)
  [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
  [![Get support or discuss](https://img.shields.io/badge/chat-on_spectrum-6833F9.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyBpZD0iTGl2ZWxsb18xIiBkYXRhLW5hbWU9IkxpdmVsbG8gMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAgOCI%2BPGRlZnM%2BPHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU%2BPC9kZWZzPjx0aXRsZT5zcGVjdHJ1bTwvdGl0bGU%2BPHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNSwwQy40MiwwLDAsLjYzLDAsMy4zNGMwLDEuODQuMTksMi43MiwxLjc0LDMuMWgwVjcuNThhLjQ0LjQ0LDAsMCwwLC42OC4zNUw0LjM1LDYuNjlINWM0LjU4LDAsNS0uNjMsNS0zLjM1UzkuNTgsMCw1LDBaTTIuODMsNC4xOGEuNjMuNjMsMCwxLDEsLjY1LS42M0EuNjQuNjQsMCwwLDEsMi44Myw0LjE4Wk01LDQuMThhLjYzLjYzLDAsMSwxLC42NS0uNjNBLjY0LjY0LDAsMCwxLDUsNC4xOFptMi4xNywwYS42My42MywwLDEsMSwuNjUtLjYzQS42NC42NCwwLDAsMSw3LjE3LDQuMThaIi8%2BPC9zdmc%2B)](https://spectrum.chat/popper-js/react-popper)
  
  React wrapper around [Popper](https://popper.js.org).
  
  **important note:** Popper is **not** a tooltip library, it's a _positioning
  engine_ to be used to build features such as (but not restricted to) tooltips.
  
  ## Install
  
  Via package managers:
  
  ```bash
  # With npm
  npm i react-popper @popperjs/core
  
  # With Yarn
  yarn add react-popper @popperjs/core
  ```
  
  **Note:** `@popperjs/core` must be installed in your project in order for
  `react-popper` to work.
  
  Via `script` tag (UMD library exposed as `ReactPopper`):
  
  ```html
  <script src="https://unpkg.com/react-popper/dist/index.umd.js"></script>
  ```
  
  ## Documentation
  
  The full documentation can be found on the official Popper website:
  
  http://popper.js.org/react-popper
  
  
  ## Running Locally
  
  #### clone repo
  
  `git clone git@github.com:popperjs/react-popper.git`
  
  #### move into folder
  
  `cd ~/react-popper`
  
  #### install dependencies
  
  `npm install` or `yarn`
  
  #### run dev mode
  
  `npm run demo:dev` or `yarn demo:dev`
  
  #### open your browser and visit:
  
  `http://localhost:1234/`