Tooltip
Install and import
Example
The tooltip follows the cursor.
Maybe you don't want the tooltip to follow the cursor…
With a long text and a custom placement
Set a max-width
for long text
With long text
Properties
Name | Type(s) | Default | Required |
---|---|---|---|
children | func | node | ||
content | union | ||
fixed | bool | false | |
placement | auto-start auto auto-end top-start top top-end right-start right right-end bottom-end bottom bottom-start left-end left left-start | fixed ? top : bottom-start |
Dependencies
- - @welcome-ui/system^2.0.2
- - popper.js^1.14.4
- - reakit^1.1.1
Peer dependencies
- - @xstyled/styled-components^1.17.0
- - @xstyled/system^1.17.0
- - prop-types^15.7.2
- - react^16.10.2
- - react-dom^16.10.2
- - styled-components^4.0.0 || ^5.0.0