Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Metronic 8 - React - tooltip


I added this to my metronic 8 react mode but it does not work any help ?

<span
className="bg-transparent border-0"
data-bs-toggle="tooltip"
data-bs-placement="right"
data-bs-custom-class="tooltip-dark"
title="Tooltip text"
>
<i className="bi bi-exclamation-circle fs-2 text-danger"></i>
</span>


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

Thank you for reaching out to us.

In Metronic React version tooltips should be used differently.


import {OverlayTrigger, Tooltip} from "react-bootstrap";

<OverlayTrigger
placement="right"
delay={{ show: 250, hide: 400 }}
overlay={(props) => (
<Tooltip id="button-tooltip" {...props}>
Tooltip text
</Tooltip>
)}
>
<span
className="bg-transparent border-0"
>
<i className="bi bi-exclamation-circle fs-2 text-danger"></i>
</span>
</OverlayTrigger>



You can find more tooltip usage examples React Bootstrap official docs.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(