UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

22 lines 728 B
import { createSnapComponent } from "../component.mjs"; const TYPE = 'Container'; /** * A container component, which is used to create a container with a box and a footer. * * @param props - The props of the component. * @param props.backgroundColor - The color of the background. * @param props.children - The Box and the Footer or the Box element. * @returns A container element. * @example * <Container backgroundColor="default"> * <Box> * <Text>Hello world!</Text> * </Box> * <Footer> * <Button name="cancel">Cancel</Button> * <Button name="confirm">Confirm</Button> * </Footer> * </Container> */ export const Container = createSnapComponent(TYPE); //# sourceMappingURL=Container.mjs.map