@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
35 lines • 1.05 kB
text/typescript
import type { StringElement } from "../component.mjs";
/**
* The props of the {@link Heading} component.
*
* @property children - The text to display in the heading.
* @property size - The size of the heading. Defaults to `sm`.
* @category Component Props
*/
type HeadingProps = {
children: StringElement;
size?: 'sm' | 'md' | 'lg' | undefined;
};
/**
* 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>
* @category Components
*/
export declare const Heading: import("../component.mjs").SnapComponent<HeadingProps, "Heading">;
/**
* A heading element.
*
* @see {@link Heading}
* @category Elements
*/
export type HeadingElement = ReturnType<typeof Heading>;
export {};
//# sourceMappingURL=Heading.d.mts.map