Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f551da8

Browse files
SidKHFezVrasta
authored andcommitted
docs: document innerRef prop (#189)
1 parent 9142dd7 commit f551da8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ The `Popper` component accepts the properties `children`, `placement`, `modifier
7171

7272
```jsx
7373
<Popper
74+
innerRef={(node) => this.popperNode = node}
7475
placement="right"
7576
modifiers={{ preventOverflow: { enabled: false } }}
7677
eventsEnabled={true}
@@ -116,6 +117,13 @@ The `arrowProps` argument is an object, containing a `style` and `ref` propertie
116117
ones provided as first and second argument of `children`, but are relative to the **arrow** element rather than
117118
the popper. Use them to, accordingly, retrieve the ref of the **arrow** element and style it.
118119
120+
##### `innerRef`
121+
```js
122+
innerRef?: (?HTMLElement) => void
123+
```
124+
125+
Function that can be used to obtain popper reference
126+
119127
##### `placement`
120128
121129
```js

0 commit comments

Comments
 (0)