Skip to content

Commit

Permalink
docs: add role prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Dang, Mai-Linh authored and gabrieljablonski committed Nov 21, 2023
1 parent e19d1b7 commit 3a79be2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/docs/options.mdx
Expand Up @@ -130,3 +130,4 @@ import { Tooltip } from 'react-tooltip';
| `opacity` | CSS opacity | no | `0.9` | a CSS opacity value | Change the opacity of the tooltip |
| `arrowColor` | CSS color | no | | a CSS background color | Change color of the tooltip arrow |
| `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 |
| `role` | `'tooltip'` or `'dialog'` | no | `tooltip` | `'tooltip'` `'dialog'` | Set ARIA role, either `tooltip` or `dialog` if the tooltip should contain focusable elements |

0 comments on commit 3a79be2

Please sign in to comment.