-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tooltip component #63
Conversation
<div style={{ height: '120px' }}> | ||
<div | ||
style={{ display: 'inline-block' }} | ||
ref={refs.setReference} | ||
{...getReferenceProps()} | ||
> | ||
<Button label='Hover over this button to show a tooltip' /> | ||
</div> | ||
{isOpen && ( | ||
<div | ||
ref={refs.setFloating} | ||
style={floatingStyles} | ||
{...getFloatingProps()} | ||
> | ||
<Tooltip arrow='top'>Floating tooltip for the button</Tooltip> | ||
</div> | ||
)} | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tämä osuus pitäs olla itseasiassa tooltip-komponentin sisällä. Eli tooltipin pitäs itsessään osata kellua. Muuten tää näyttää hyvältä 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rajaus meni vähän väärin mutta tuo floating UI osuus Tooltip-komponentin sisälle siis
No description provided.