
This is not exactly finished or ready for prime-time, but I do feel that leaving it in a feature branch longer will only cause the spread between the `develop` branch and this to grow. Given that I've taken care to not break the current site, I plan to merge this and then keep polishing things. Some views are not implemented yet, and overall there's a need to polish to limit the amount of re-renders and improve performance.
13 lines
278 B
JavaScript
13 lines
278 B
JavaScript
export const Tooltip = (props) => {
|
|
const { children, tip, ...rest } = props
|
|
|
|
return (
|
|
<div
|
|
{...rest}
|
|
className={`tooltip tooltip-bottom before:bg-base-200 before:shadow before:text-base-content`}
|
|
data-tip={tip}
|
|
>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|