@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
19 lines • 796 B
JavaScript
import { createSnapComponent } from "../component.mjs";
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>
*/
export const Box = createSnapComponent(TYPE);
//# sourceMappingURL=Box.mjs.map