UNPKG

reablocks

Version:
30 lines (28 loc) 873 B
import { TypographyTheme } from '../TypographyTheme'; import { default as React, FC, LegacyRef } from 'react'; export type SmallHeadingColors = 'default' | 'primary' | 'secondary' | 'error' | 'success' | 'warning' | 'info' | string; export interface SmallHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> { /** * Color variation of the title. */ color?: SmallHeadingColors; /** * Font variant for the heading. */ variant?: 'default' | 'mono'; /** * Whether to disable the margins. */ disableMargins?: boolean; /** * Theme for the Typography. */ theme?: TypographyTheme; } export interface SmallHeadingRef { /** * Reference to the HTML heading element. */ ref?: LegacyRef<HTMLHeadingElement>; } export declare const SmallHeading: FC<SmallHeadingProps & SmallHeadingRef>;