Skip to content

Commit 3a79be2

Browse files
dmbln34gabrieljablonski
authored andcommitted
docs: add role prop
1 parent e19d1b7 commit 3a79be2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/docs/options.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,4 @@ import { Tooltip } from 'react-tooltip';
130130
| `opacity` | CSS opacity | no | `0.9` | a CSS opacity value | Change the opacity of the tooltip |
131131
| `arrowColor` | CSS color | no | | a CSS background color | Change color of the tooltip arrow |
132132
| `disableStyleInjection` | `boolean` or `'core'` | no | `false` | `true` `false` `'core'` | Whether to disable automatic style injection. Do not set dynamically. Check the [styling page](./examples/styling#disabling-reacttooltip-css) for more details |
133+
| `role` | `'tooltip'` or `'dialog'` | no | `tooltip` | `'tooltip'` `'dialog'` | Set ARIA role, either `tooltip` or `dialog` if the tooltip should contain focusable elements |

0 commit comments

Comments
 (0)