mirror of
https://github.com/hansjone/mind-map.git
synced 2026-10-08 23:33:24 +08:00
Toolbar exports PNG (fit+raster) and SVG; card click expands full fields, hover shows property tooltips, double-click opens the editor. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
405 B
TypeScript
20 lines
405 B
TypeScript
/** Floating property detail tip (card view hover). */
|
|
|
|
export function PropTooltip({
|
|
label,
|
|
value,
|
|
x,
|
|
y,
|
|
}: {
|
|
label: string;
|
|
value: string;
|
|
x: number;
|
|
y: number;
|
|
}) {
|
|
return (
|
|
<div className="prop-tooltip" style={{ left: x, top: y }} role="tooltip">
|
|
<div className="prop-tooltip__label">{label}</div>
|
|
<div className="prop-tooltip__value">{value}</div>
|
|
</div>
|
|
);
|
|
}
|