import color from '../../styles/colors'; export interface TypographyProps { /** * Variant of text style */ variant?: variantType; /** * Font weight */ weight?: weightType; /** * Monospace style if true */ monospace?: boolean; /** * Italic style if true */ italic?: boolean; /** * Color of the text */ color?: typeof color | string; /** * Children text */ children?: React.ReactNode; /** * Copies text to clipboard */ copyable?: boolean; /** * To control the size of copy icon's */ iconSize?: number; /** * On Clipboard copy if typography type is copyable */ onCopy?: (e?: React.BaseSyntheticEvent) => void; } export type variantType = | 'h1' | 'h2' | 'h3' | 'h4' | 'subtitle1' | 'subtitle2' | 'body16' | 'body18' | 'caption14' | 'caption12'; export type weightType = | 'semibold' | 'bold' | 'regular' | '600' | '400' | 'medium' | '500' | '700';