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
With title
Add a title to the tooltip component (optional)
Fixed
Maybe you don't want the tooltip to follow the cursor set by fixed property
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.