@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
17 lines • 572 B
JavaScript
import { createSnapComponent } from "../../component.mjs";
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>
*/
export const Italic = createSnapComponent(TYPE);
//# sourceMappingURL=Italic.mjs.map