@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
33 lines • 951 B
text/typescript
import type { JsonObject, SnapElement, SnapsChildren } from "../../component.mjs";
/**
* The children of the {@link Bold} component.
*/
export type BoldChildren = SnapsChildren<string | SnapElement<JsonObject, 'Italic'>>;
/**
* The props of the {@link Bold} component.
*
* @property children - The text to display in bold.
*/
export type BoldProps = {
children: BoldChildren;
};
/**
* A bold component, which is used to display text in bold. This component can
* only be used as a child of the {@link Text} component.
*
* @param props - The props of the component.
* @param props.children - The text to display in bold.
* @returns A bold element.
* @example
* <Text>
* Hello <Bold>world</Bold>!
* </Text>
*/
export declare const Bold: import("../../component.mjs").SnapComponent<BoldProps, "Bold">;
/**
* A bold element.
*
* @see Bold
*/
export type BoldElement = ReturnType<typeof Bold>;
//# sourceMappingURL=Bold.d.mts.map