@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
20 lines • 679 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Italic = void 0;
const component_1 = require("../../component.cjs");
const TYPE = 'Italic';
/**
* An italic component, which is used to display text in italic. This componen
* 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 italic. This should be a
* string or an array of strings.
* @returns An italic element.
* @example
* <Text>
* Hello <Italic>world</Italic>!
* </Text>
*/
exports.Italic = (0, component_1.createSnapComponent)(TYPE);
//# sourceMappingURL=Italic.cjs.map