mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 13:16:11 +01:00
icons
This commit is contained in:
1 parent
f10065887d
commit
10f8fa28f9
11 files changed
+121
-81
No files matched your search
@@ -4,12 +4,15 @@ import styles from "./index.module.css";
|
||||
interface Props {
|
||||
children: ReactNode;
|
||||
tooltip: string;
|
||||
side?: "top" | "left";
|
||||
}
|
||||
|
||||
export function Tooltip({ children, tooltip }: Props) {
|
||||
export function Tooltip({ children, tooltip, side = "top" }: Props) {
|
||||
return (
|
||||
<div className={styles.tooltip}>
|
||||
<div className={styles.text}>{tooltip}</div>
|
||||
<div className={styles.text} data-side={side}>
|
||||
{tooltip}
|
||||
</div>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user