UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

19 lines 658 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Heading = void 0; const component_1 = require("../component.cjs"); const TYPE = 'Heading'; /** * A heading component, which is used to display heading text. * * @param props - The props of the component. * @param props.children - The text to display in the heading. * @param props.size - The size of the heading. Defaults to `sm`. * @returns A heading element. * @example * <Heading>Hello world!</Heading> * @example * <Heading size="lg">Hello world!</Heading> */ exports.Heading = (0, component_1.createSnapComponent)(TYPE); //# sourceMappingURL=Heading.cjs.map