UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

19 lines 689 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Banner = void 0; const component_1 = require("../component.cjs"); const TYPE = 'Banner'; /** * A Banner component, which is used to display custom banner alerts. * * @param props - The props of the component. * @param props.children - The content to display in the banner. * @param props.title - Title of the banner. * @param props.severity - Severity level of the banner. * @example * <Banner title="Success banner" severity="success"> * <Text>Here is the banner content!</Text> * </Banner> */ exports.Banner = (0, component_1.createSnapComponent)(TYPE); //# sourceMappingURL=Banner.cjs.map