mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
15 lines
297 B
TypeScript
15 lines
297 B
TypeScript
import "./Tooltip.scss";
|
|
|
|
import React from "react";
|
|
|
|
type TooltipProps = {
|
|
children: React.ReactNode;
|
|
label: string;
|
|
};
|
|
|
|
export const Tooltip = ({ children, label }: TooltipProps) => (
|
|
<div className="Tooltip">
|
|
<span className="Tooltip__label">{label}</span>
|
|
{children}
|
|
</div>
|
|
);
|