UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

16 lines 550 B
import { createSnapComponent } from "../component.mjs"; 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> */ export const Heading = createSnapComponent(TYPE); //# sourceMappingURL=Heading.mjs.map