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

Commit 3bc65d6

Browse files
committed
isEnabled/isVisible → enabled/visible
1 parent d081690 commit 3bc65d6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

173173
Prop to control the `tippy.enable()` / `tippy.disable()` instance methods. Use
174174
this when you want to temporarily disable a tippy from showing.
175175

176176
```jsx
177177
function 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

189189
Prop to control the `tippy.show()` / `tippy.hide()` instance methods. Use this
190190
when you want to programmatically show or hide the tippy instead of relying on
@@ -193,9 +193,9 @@ state.
193193

194194
```jsx
195195
function 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
)

0 commit comments

Comments
 (0)