UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

29 lines 863 B
import type { ButtonElement } from "./form/index.mjs"; /** * The props of the {@link Footer} component. * * @property children - The single or multiple buttons in the footer. */ export type FooterProps = { children: ButtonElement | [ButtonElement, ButtonElement]; }; /** * A footer component, which is used to create a footer with buttons. * * @param props - The props of the component. * @param props.children - The single or multiple buttons in the footer. * @returns A footer element. * @example * <Footer> * <Button name="cancel">Cancel</Button> * <Button name="confirm">Confirm</Button> * </Footer> */ export declare const Footer: import("../component.mjs").SnapComponent<FooterProps, "Footer">; /** * A footer element. * * @see Footer */ export type FooterElement = ReturnType<typeof Footer>; //# sourceMappingURL=Footer.d.mts.map