@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
18 lines • 600 B
JavaScript
import { createSnapComponent } from "../../component.mjs";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Text } from "../Text.mjs";
const TYPE = 'Bold';
/**
* 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 const Bold = createSnapComponent(TYPE);
//# sourceMappingURL=Bold.mjs.map