@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
20 lines • 660 B
JavaScript
import { createSnapComponent } from "../component.mjs";
const TYPE = 'Tooltip';
/**
* A tooltip component, which is used to display text in a tooltip.
*
* @param props - The props of the component.
* @param props.children - The children of the tooltip.
* @param props.content - The text to display in the tooltip.
* @returns A tooltip element.
* @example
* <Tooltip content="Tooltip text">
* <Text>Hello world!</Text>
* </Tooltip>
* @example
* <Tooltip content={<Text>Text with <Bold>formatting</Bold></Text>}>
* <Text>Hello world!</Text>
* </Tooltip>
*/
export const Tooltip = createSnapComponent(TYPE);
//# sourceMappingURL=Tooltip.mjs.map