Setup
aksel.nav.no
Props
Tooltip
Type |
|
---|---|
Description | Element tooltip anchors to @note Needs to be React.ReactElement, does not support multiple children/react fragment |
Type |
|
---|---|
Description | Open state for contolled tooltip |
Type |
|
---|---|
Description | Tells tooltip to start in open state. Use sparingly synce hover/focus on other elements will close it @note "open"-prop overwrites this |
Default | false |
Type |
|
---|---|
Description | Orientation for tooltip |
Default | "top" |
Type |
|
---|---|
Description | Toggles rendering of arrow |
Default | true |
Type |
|
---|---|
Description | Distance from anchor to tooltip |
Default | 10px with arrow, 2px without arrow |
Type |
|
---|---|
Description | Text-content inside tooltip |
Type |
|
---|---|
Description | Sets max allowed character length. |
Default | 80 |
Type |
|
---|---|
Description | Adds a delay in milliseconds before opening tooltip |
Default | 150 |
Type |
|
---|---|
Description | List of Keyboard-keys for shortcuts |
Type |
|
---|
Type |
|
---|
* Props er autogenerert fra kode, så avvik kan forekomme. Ta kontakt hvis noe ikke stemmer!