tooltip

Tooltip is a helper to quick inform user

this is the tooltip content
<Tooltip
content="this is the tooltip content"
style={{ backgroundColor: "#f2f2f2", color: "#000" }}
>
<Button>tooltip</Button>
</Tooltip>
copy

Tooltip can be in a different position

this is the tooltip content
this is the tooltip content
this is the tooltip content
this is the tooltip content
<Tooltip
content="this is the tooltip content"
>
<Button>tooltip</Button>
</Tooltip>

<Tooltip
content="this is the tooltip content"
position="left"
>
<Button>tooltip</Button>
</Tooltip>

<Tooltip
content="this is the tooltip content"
position="right"
>
<Button>tooltip</Button>
</Tooltip>

<Tooltip
content="this is the tooltip content"
position="bottom"
>
<Button>tooltip</Button>
</Tooltip>
copy

API

propstypestatusdefaultdescription
childrenReactNoderequiredNonethe main element for tooltip
contentReactNoderequiredNoneTooltip's content
positiontop | left | right | bottomoptionaltopTooltip's position
styleCSSPropertiesoptionalbg:#000 color:#fffTooltip's title
usagepositionapi