UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

23 lines 768 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Tooltip = void 0; const component_1 = require("../component.cjs"); 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> */ exports.Tooltip = (0, component_1.createSnapComponent)(TYPE); //# sourceMappingURL=Tooltip.cjs.map