UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

22 lines 897 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Avatar = void 0; const component_1 = require("../component.cjs"); const TYPE = 'Avatar'; /** * An avatar component, which is used to display an avatar for a CAIP-10 address. * * This component does not accept any children. * * @param props - The props of the component. * @param props.address - The address to display. This should be a valid CAIP-10 address. * @param props.size - The size of the avatar. Can be `sm`, `md`, or `lg`. Defaults to `md`. * @returns An avatar element. * @example * <Avatar address="eip155:1:0x1234567890123456789012345678901234567890" /> * @example * <Avatar address="bip122:000000000019d6689c085ae165831e93:128Lkh3S7CkDTBZ8W7BbpsN3YYizJMp8p6" /> * @category Components */ exports.Avatar = (0, component_1.createSnapComponent)(TYPE); //# sourceMappingURL=Avatar.cjs.map