UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

20 lines 831 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Copyable = void 0; const component_1 = require("../component.cjs"); const TYPE = 'Copyable'; /** * A copyable component, which is used to display text that can be copied by the * user. * * @param props - The props of the component. * @param props.value - The value to copy when the user clicks on the copyable * element. * @param props.sensitive - Whether the value is sensitive. If `true`, the value * will be hidden when the user is not interacting with the copyable element. * @example * <Copyable value="0x1234567890123456789012345678901234567890" /> * <Copyable value="0x1234567890123456789012345678901234567890" sensitive /> */ exports.Copyable = (0, component_1.createSnapComponent)(TYPE); //# sourceMappingURL=Copyable.cjs.map