UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

18 lines 597 B
import { createSnapComponent } from "../../component.mjs"; const TYPE = 'Italic'; /** * An italic component, which is used to display text in italic. 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 italic. This should be a * string or an array of strings. * @returns An italic element. * @example * <Text> * Hello <Italic>world</Italic>! * </Text> * @category Components */ export const Italic = createSnapComponent(TYPE); //# sourceMappingURL=Italic.mjs.map