UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

26 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Section = void 0; const component_1 = require("../component.cjs"); const TYPE = 'Section'; /** * A section component, which is used to group multiple components together. * The component itself is 16px padded with a default background and a border radius of 8px. * * @param props - The props of the component. * @param props.children - The children of the section. * @param props.direction - The direction that the children are aligned. * @param props.alignment - The alignment of the children (a justify-content value). * @returns A section element. * @example * <Section> * <Row label="From"> * <Address address="0x1234567890123456789012345678901234567890" /> * </Row> * <Row label="To" variant="warning" tooltip="This address has been deemed dangerous."> * <Address address="0x0000000000000000000000000000000000000000" /> * </Row> * </Section> */ exports.Section = (0, component_1.createSnapComponent)(TYPE); //# sourceMappingURL=Section.cjs.map