mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-29 04:44:23 +01:00
migrate compare and tankopedia loadout to new data-driven components, splitting the old monolithic loadout and compare UI into smaller pieces and adding shared Table, Dialog and Scroller primitives
This commit is contained in:
111 files changed
+4009
-3917
No files matched your search
@@ -1,15 +1,22 @@
|
||||
import type { ReactNode } from "react";
|
||||
import type { ComponentProps, ReactNode } from "react";
|
||||
import { classNames } from "../../ui/classNames";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
interface Props {
|
||||
interface Props extends ComponentProps<"div"> {
|
||||
children: ReactNode;
|
||||
tooltip: string;
|
||||
side?: "top" | "left";
|
||||
}
|
||||
|
||||
export function Tooltip({ children, tooltip, side = "top" }: Props) {
|
||||
export function Tooltip({
|
||||
children,
|
||||
tooltip,
|
||||
side = "top",
|
||||
className,
|
||||
...props
|
||||
}: Props) {
|
||||
return (
|
||||
<div className={styles.tooltip}>
|
||||
<div className={classNames(styles.tooltip, className)} {...props}>
|
||||
<div className={styles.text} data-side={side}>
|
||||
{tooltip}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user