-
-
Notifications
You must be signed in to change notification settings - Fork 449
/
Copy pathtooltip.styles.tsx
43 lines (39 loc) · 1002 Bytes
/
tooltip.styles.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { Button, Tooltip } from "flowbite-react";
import type { CodeData } from "~/components/code-demo";
const code = `
import { Button, Tooltip } from "flowbite-react";
export function Component() {
return (
<div className="flex gap-2">
<Tooltip content="Tooltip content" style="light">
<Button>Light tooltip</Button>
</Tooltip>
<Tooltip content="Tooltip content" style="dark">
<Button>Dark tooltip</Button>
</Tooltip>
</div>
);
}
`;
export function Component() {
return (
<div className="flex gap-2">
<Tooltip content="Tooltip content" style="light">
<Button>Light tooltip</Button>
</Tooltip>
<Tooltip content="Tooltip content" style="dark">
<Button>Dark tooltip</Button>
</Tooltip>
</div>
);
}
export const styles: CodeData = {
type: "single",
code: {
fileName: "index",
language: "tsx",
code,
},
githubSlug: "tooltip/tooltip.styles.tsx",
component: <Component />,
};