Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77475671
ToolTip.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 14, 17:12
Size
380 B
Mime Type
text/x-java
Expires
Fri, Aug 16, 17:12 (2 d)
Engine
blob
Format
Raw Data
Handle
19876218
Attached To
R13029 webapp_nextjs
ToolTip.js
View Options
import
{
useState
}
from
'react'
;
import
'./ToolTip.css'
;
function
Tooltip
({
content
,
toolTipVisible
,
top
,
left
})
{
return
(
<
span
id
=
"peity-tooltip"
className
=
{
toolTipVisible
?
'peity-tooltip show'
:
'peity-tooltip'
}
style
=
{{
top
:
`
$
{
top
}
px
`
,
left
:
`
$
{
left
}
px
`
}}
>
{
content
}
<
/span>
);
}
export
default
Tooltip
;
Event Timeline
Log In to Comment