UNPKG

@coconut-software/ui

Version:

React components for faster and easier web development.

12 lines (11 loc) 607 B
import type { ElementType, PropsWithChildren } from 'react'; interface TypographyProps { color?: TypographyColor; component?: ElementType; truncate?: boolean; variant?: TypographyVariant; } type TypographyColor = 'initial' | 'inherit' | 'inverse'; type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'subtitle3' | 'body1' | 'body2' | 'button' | 'caption' | 'overline'; declare function Typography({ children, color, component: Component, truncate, variant, }: PropsWithChildren<TypographyProps>): JSX.Element; export default Typography;