UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

17 lines 722 B
import { createSnapComponent } from "../component.mjs"; 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 /> */ export const Copyable = createSnapComponent(TYPE); //# sourceMappingURL=Copyable.mjs.map