@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
22 lines • 851 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Row = void 0;
const component_1 = require("../component.cjs");
const TYPE = 'Row';
/**
* A row component, which is used to display a row of information.
*
* @param props - The props of the component.
* @param props.label - The label of the row.
* @param props.children - The content of the row. This can be an address, an
* image, or text.
* @param props.variant - The variant of the row.
* @param props.tooltip - An optional tooltip to show for the row.
* @returns A row element.
* @example
* <Row label="From" variant="warning" tooltip="This address has been deemed dangerous.">
* <Address address="0x1234567890123456789012345678901234567890" />
* </Row>
*/
exports.Row = (0, component_1.createSnapComponent)(TYPE);
//# sourceMappingURL=Row.cjs.map