reablocks
Version:
Component library for React
29 lines (27 loc) • 830 B
TypeScript
import { TypographyTheme } from '../TypographyTheme';
import { default as React, FC, LegacyRef } from 'react';
export interface PrimaryHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
/**
* Color variation of the title.
*/
color?: 'default' | 'primary' | 'secondary' | 'error' | 'success' | 'warning' | 'info' | string;
/**
* Font variant for the heading.
*/
variant?: 'default' | 'mono';
/**
* Whether to disable the margins.
*/
disableMargins?: boolean;
/**
* Theme for the Typography.
*/
theme?: TypographyTheme;
}
export interface PrimaryHeadingRef {
/**
* Reference to the HTML heading element.
*/
ref?: LegacyRef<HTMLHeadingElement>;
}
export declare const PrimaryHeading: FC<PrimaryHeadingProps & PrimaryHeadingRef>;