Create accessible tooltips to add additional descriptions to buttons, links, or any other element. The tooltips will automatically attempt to position themselves within the viewport and adjust as needed.
npm install --save @react-md/tooltipIt is also recommended to install the following packages as they work hand-in-hand with this package:
npm install --save @react-md/theme \
@react-md/button123456789101112import React, { Fragment } from "react";
import { render } from "react-dom";
import { Button } from "@react-md/button";
import { Tooltipped } from "@react-md/tooltip";
const App = () => (
<Tooltipped id="button-id" tooltip="I am a tooltip">
<Button>Button Text</Button>
</Tooltipped>
);
render(<App />, document.getElementById("root"));