import { Button } from 'welcome-ui/Button'import { Tooltip } from 'welcome-ui/Tooltip'const Example = () => {return (<Tooltip content="Tooltip"><Button>Tooltip</Button></Tooltip>)}export default Example
Fixed
Maybe you don't want the tooltip to follow the cursor set by fixed property
With an arrow
You can use the withArrow property to display an arrow pointing towards your trigger
It will only display with the fixed property set to true
With a long text and a custom placement
Set a max-width for long text
With a disabled button
We're adding a wrapper around the button when it's disabled otherwise the tooltip does not trigger.
Placement
Using only with the fixed prop, placement will enable a translate animation on your tooltip. The direction works with these values for placement.