Tooltip

General


Any Content [top]

Any Content [top & long text]

Any Content Any Content [top-right]

Any Content [top-left]

Any Content [bottom]

Any Content Any Content [bottom-right]

Any Content [bottom-left]

Any Content [top & long text]

Show Code
import React from "react";
import Tooltip from 'funda-ui/Tooltip';
 
// component styles
import 'funda-ui/Tooltip/index.css';
 
export default () => {
 
    return (
        <>
          
            <Tooltip
                hoverDelay={300}
                direction="top"
                size="auto"
                content={<><div className="text-center">Hi, there. I am here.</div></>}
            >
                Any Content [top]
            </Tooltip>
 
            <hr />
 
 
 
            <Tooltip
                hoverDelay={300}
                direction="top"
                size="auto"
                content={<><div className="text-center">Mario Tennis 64 ROM download is available to play for Nintendo 64. This Mario game is the US English version at EmulatorGames.net exclusively.</div></>}
            >
                Any Content [top & long text]
            </Tooltip>
 
            <hr />
 
 
            <Tooltip
                hoverDelay={300}
                direction="top-right"
                size="auto"
                content={<><div className="text-center">Hi, there. I am here.</div></>}
            >
                Any Content Any Content [top-right]
            </Tooltip>
 
 
            <hr />
 
 
            <Tooltip
                hoverDelay={300}
                direction="top-left"
                size="auto"
                content={<><div className="text-center">Hi, there. I am here.</div></>}
            >
                Any Content [top-left]
            </Tooltip>
 
            <hr />
 
 
            <Tooltip
                hoverDelay={300}
                direction="bottom"
                size="auto"
                content={<><div className="text-center">Hi, there. I am here.</div></>}
            >
                Any Content [bottom]
            </Tooltip>
 
            <hr />
 
 
            <Tooltip
                hoverDelay={300}
                direction="bottom-right"
                size="auto"
                content={<><div className="text-center">Hi, there. I am here.</div></>}
            >
                Any Content Any Content [bottom-right]
            </Tooltip>
 
 
            <hr />
 
 
            <Tooltip
                hoverDelay={300}
                direction="bottom-left"
                size="auto"
                content={<><div className="text-center">Hi, there. I am here.</div></>}
            >
                Any Content [bottom-left]
            </Tooltip>
 
 
 
            <hr />
 
 
            <div style={{marginLeft: 'calc(100% - 200px)'}}>
                <Tooltip
                    hoverDelay={300}
                    direction="top"
                    size="auto"
                    content={<><div className="text-center">Mario Tennis 64 ROM download is available to play for Nintendo 64. This Mario game is the US English version at EmulatorGames.net exclusively.</div></>}
                >
                    Any Content [top & long text]
                </Tooltip>
            </div>
 
 
          
        </>
    );
}

API

Tooltip

import Tooltip from 'funda-ui/Tooltip';
PropertyTypeDefaultDescriptionRequired
wrapperClassNamestringd-inline-blockThe class name of the control wrapper.-
directiontop | top-right | top-left | bottom | bottom-right | bottom-lefttopThe direction of the tip. Defaults to top.-
offsetnumber10Position offset of top and bottom.-
exceededSidePosOffsetnumber15Offset px that exceeds the far right or left side of the screen-
sizeauto | large | medium | smallautoThe size of the content area. Defaults to auto.-
hoverDelaynumber200The number of milliseconds to determine hover intent-
mouseOutDelaynumber-The number of milliseconds to determine hover-end intent, defaults to the hoverDelay value-
contentReactNode-Set a piece of text or HTML code-