
Refer to the CHANGELOG for all info. --------- Co-authored-by: Wouter van Wageningen <wouter.vdub@yahoo.com> Co-authored-by: Josh Munic <jpmunic@gmail.com> Co-authored-by: Jonathan Haas <haasjona@gmail.com>
15 lines
332 B
JavaScript
15 lines
332 B
JavaScript
import React from 'react'
|
|
|
|
export const Tooltip = (props) => {
|
|
const { children, tip, ...rest } = props
|
|
|
|
return (
|
|
<div
|
|
{...rest}
|
|
className={`tw-daisy-tooltip tw-daisy-tooltip-bottom before:tw-bg-base-200 before:tw-shadow before:tw-text-base-content`}
|
|
data-tip={tip}
|
|
>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|