1
0
Fork 0
freesewing/packages/react-components/src/editor/swizzle/components/tooltip.mjs
Joost De Cock adefbe7d18
feat: New pattern editor (#7080)
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.
2024-09-15 15:29:30 +02:00

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>
)
}