sigit.io/src/components/TooltipChild.tsx

12 lines
258 B
TypeScript
Raw Normal View History

import { forwardRef, PropsWithChildren } from 'react'
export const TooltipChild = forwardRef<HTMLSpanElement, PropsWithChildren>(
({ children, ...rest }, ref) => {
return (
<span ref={ref} {...rest}>
{children}
</span>
)
}
)