UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

35 lines 1.09 kB
import type { JsonObject, SnapElement, SnapsChildren } from "../../component.cjs"; /** * The children of the {@link Italic} component. */ export type ItalicChildren = SnapsChildren<string | SnapElement<JsonObject, 'Bold'>>; /** * The props of the {@link Italic} component. * * @property children - The text to display in italic. This should be a string * or an array of strings. */ export type ItalicProps = { children: ItalicChildren; }; /** * 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 declare const Italic: import("../../component.cjs").SnapComponent<ItalicProps, "Italic">; /** * An italic element. * * @see Italic */ export type ItalicElement = ReturnType<typeof Italic>; //# sourceMappingURL=Italic.d.cts.map