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 +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -168,23 +168,23 @@ See [themes](https://atomiks.github.io/tippyjs/themes/) for more information.
168168> required to use this library – the props will work as expected in class
169169> components too.
170170
171- ### ` isEnabled ?: boolean`
171+ ### ` enabled ?: boolean`
172172
173173Prop to control the ` tippy.enable() ` / ` tippy.disable() ` instance methods. Use
174174this when you want to temporarily disable a tippy from showing.
175175
176176``` jsx
177177function App () {
178- const [isEnabled , setIsEnabled ] = useState (true )
178+ const [enabled , setEnabled ] = useState (true )
179179 return (
180- < Tippy content= " Tooltip" isEnabled = {isEnabled }>
180+ < Tippy content= " Tooltip" enabled = {enabled }>
181181 < button / >
182182 < / Tippy>
183183 )
184184}
185185```
186186
187- ### ` isVisible ?: boolean`
187+ ### ` visible ?: boolean`
188188
189189Prop to control the ` tippy.show() ` / ` tippy.hide() ` instance methods. Use this
190190when you want to programmatically show or hide the tippy instead of relying on
@@ -193,9 +193,9 @@ state.
193193
194194``` jsx
195195function App () {
196- const [isVisible , setIsVisible ] = useState (true )
196+ const [visible , setVisible ] = useState (true )
197197 return (
198- < Tippy content= " Tooltip" isVisible = {isVisible }>
198+ < Tippy content= " Tooltip" visible = {visible }>
199199 < button / >
200200 < / Tippy>
201201 )
You can’t perform that action at this time.
0 commit comments