Tooltip

less than 1 minute read

References

TypeScript

import { Components } from "gd-sprest-bs";

// Create the tooltip
let el = document.querySelector("#tooltip");
let tooltip = Components.Tooltip({
    el: el,
    text: "Tooltip Demo"
    options: {
        html: true,
        title: "My Tooltip",
    }
});

React

import * as React from "react";
import { Tooltip } from "gd-sprest-bsx";

export class IDemo extends React.Component {
    // Render the component
    render() {
        return (
            <Tooltip
                text="Tooltip"
                options=
            />
        );
    }
}

Code Playground