We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59818f2 commit bac74cfCopy full SHA for bac74cf
package.json
@@ -48,6 +48,7 @@
48
"react-lazy-images": "^1.1.0",
49
"react-snap-carousel": "^0.3.2",
50
"react-syntax-highlighter": "15.5.0",
51
+ "react-tooltip": "^5.28.0",
52
"sharp": "^0.32.5",
53
"slugify": "^1.6.6",
54
"swr": "^2.2.2",
src/components/tooltip-x.tsx
@@ -0,0 +1,22 @@
1
+import React from 'react'
2
+import { Tooltip } from 'react-tooltip'
3
+
4
+type TooltipXProps = {
5
+ className?: string
6
+ content: string
7
+ id: string
8
+}
9
10
+export default function TooltipX(props: TooltipXProps) {
11
+ return (
12
+ <Tooltip
13
+ anchorSelect={`#draft-${props.id}`}
14
+ place="bottom"
15
+ className="!text-sm !px-2 !py-0.5 !rounded-md"
16
+ noArrow={true}
17
+ defaultIsOpen={true}
18
+ >
19
+ {props.content}
20
+ </Tooltip>
21
+ )
22
0 commit comments