UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

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