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