This repository was archived by the owner on Nov 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,9 @@ on it:
126126For details on styling the arrow from scratch,
127127[ take a look at the Popper tutorial] ( https://popper.js.org/docs/v2/tutorial/#arrow ) .
128128
129+ ** Note: your arrow must be an ` HTMLElement ` (not an ` SVGElement ` ). To use an SVG
130+ arrow, wrap it in a ` <div> ` tag with the ` data-popper-arrow ` attribute.**
131+
129132You may also pass a ref to the element directly without the attribute using a
130133callback ref:
131134
@@ -146,7 +149,7 @@ function App() {
146149 {
147150 name: ' arrow' ,
148151 options: {
149- element: arrow,
152+ element: arrow, // can be a CSS selector too
150153 },
151154 },
152155 ],
@@ -169,6 +172,19 @@ element that the root popper node wraps, which is what gets styled and animated.
169172For advanced cases, you can access the parent popper node as ` instance.popper `
170173in the ` onCreate ` lifecycle hook.
171174
175+ [ Here's ` moveTransition ` with Framer Motion] ( https://codesandbox.io/s/tippyjs-react-framer-motion-j94mj ) .
176+
177+ ##### iOS click outside
178+
179+ Add this to your CSS to enable click outsides to work on iOS:
180+
181+ ``` css
182+ .tippy-iOS {
183+ cursor : pointer !important ;
184+ -webkit-tap-highlight-color : transparent ;
185+ }
186+ ```
187+
172188### Component children
173189
174190If you want to use a component element as a child, ensure you forward the ref to
You can’t perform that action at this time.
0 commit comments