UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

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