UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

22 lines 900 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Box = void 0; const component_1 = require("../component.cjs"); const TYPE = 'Box'; /** * A box component, which is used to group multiple components together. * * @param props - The props of the component. * @param props.children - The children of the box. * @param props.direction - The direction to stack the components within the box. Defaults to `vertical`. * @param props.alignment - The alignment mode to use within the box. Defaults to `start`. * @param props.crossAlignment - The cross alignment mode to use within the box. * @param props.center - Whether to center the children within the box. Defaults to `false`. * @returns A box element. * @example * <Box> * <Text>Hello world!</Text> * </Box> */ exports.Box = (0, component_1.createSnapComponent)(TYPE); //# sourceMappingURL=Box.cjs.map