Skip to content

Commit

Permalink
make tooltip more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
luludotdev committed Apr 16, 2024
1 parent 572e343 commit 7dbee6c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import { ComponentPropsWithoutRef as ComponentProps } from 'react'

export const Tooltip = ({
children,
style,
...props
}: ComponentProps<'span'> & { readonly title: string }) => (
<span {...props}>{children}</span>
<span
style={{ ...style, borderBottom: '1px dotted currentColor' }}
{...props}
>
{children}
</span>
)

0 comments on commit 7dbee6c

Please sign in to comment.