UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

20 lines 866 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Card = void 0; const component_1 = require("../component.cjs"); const TYPE = 'Card'; /** * A card component which can be used to display values within a card structure. * * @param props - The props of the component. * @param props.image - The image to show as part of the card, must be an SVG string. * @param props.title - The title. * @param props.description - The description, shown below the title. * @param props.value - The value, shown on the right side. * @param props.extra - An additional optional value shown below the value. * @returns A card element. * @example * <Card image="<svg />" title="Title" description="Description" value="$1200" extra="0.12 ETH" /> */ exports.Card = (0, component_1.createSnapComponent)(TYPE); //# sourceMappingURL=Card.cjs.map