lucid-ui
Version:
A UI component library from AppNexus.
36 lines (35 loc) • 995 B
TypeScript
import React from 'react';
import { StandardProps } from '../../util/component-types';
export declare enum ElementTypes {
p = "p",
tabular = "p",
h1 = "h1",
h2 = "h2",
h3 = "h3",
a = "a",
pre = "pre",
code = "code",
kbd = "kbd",
samp = "samp",
span = "span"
}
export interface ITypographyProps extends StandardProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
/** This prop defines the type of text that will be displayed. It may be an actual HTML element or something with extra semantic meaning. */
variant: keyof typeof ElementTypes;
}
export declare const Typography: {
(props: ITypographyProps): React.DetailedReactHTMLElement<{
className: string;
}, HTMLElement>;
displayName: string;
peek: {
description: string;
categories: string[];
};
propTypes: {
children: any;
className: any;
variant: any;
};
};
export default Typography;