Tooltip
Tooltips add additional context to interactive UI elements and appear on mouse hover or keyboard focus.
On this page
On this page
Import
import {Tooltip} from '@primer/react/drafts'
Examples
Props
Tooltip
| Name | Default | Description |
|---|---|---|
direction | s | 'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w' | 'nw'Sets where the tooltip renders in relation to the target. |
text | stringThe text to be displayed in the tooltip | |
type | description | 'label' | 'description'The type of tooltip. |
sx | SystemStyleObject |