@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
25 lines • 838 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Container = void 0;
const component_1 = require("../component.cjs");
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>
*/
exports.Container = (0, component_1.createSnapComponent)(TYPE);
//# sourceMappingURL=Container.cjs.map