reablocks
Version:
Component library for React
26 lines (24 loc) • 755 B
TypeScript
import { TypographyTheme } from '../TypographyTheme';
import { default as React, FC, LegacyRef } from 'react';
export interface TextProps extends React.HTMLAttributes<HTMLSpanElement> {
/**
* Color variation of the text.
*/
color?: 'default' | 'primary' | 'secondary' | 'error' | 'success' | 'warning' | 'info' | string;
fontStyle?: 'default' | 'thin' | 'bold' | 'extraBold' | 'italic';
/**
* Font variant for the text.
*/
variant?: 'default' | 'mono';
/**
* Theme for the Typography.
*/
theme?: TypographyTheme;
}
export interface TextRef {
/**
* Reference to the HTML heading element.
*/
ref?: LegacyRef<HTMLSpanElement>;
}
export declare const Text: FC<TextProps & TextRef>;