@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
32 lines • 969 B
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`.
*/
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>
*/
export declare const Heading: import("../component.mjs").SnapComponent<HeadingProps, "Heading">;
/**
* A heading element.
*
* @see Heading
*/
export type HeadingElement = ReturnType<typeof Heading>;
export {};
//# sourceMappingURL=Heading.d.mts.map