amis-rpc-design/node_modules/antd/lib/typography/Title.d.ts
2023-10-07 19:42:30 +08:00

9 lines
503 B
TypeScript

import * as React from 'react';
import type { BlockProps } from './Base';
declare const TITLE_ELE_LIST: readonly [1, 2, 3, 4, 5];
export interface TitleProps extends Omit<BlockProps<'h1' | 'h2' | 'h3' | 'h4' | 'h5'>, 'strong'>, Omit<React.HTMLAttributes<HTMLHeadElement>, 'type' | keyof BlockProps<'h1' | 'h2' | 'h3' | 'h4' | 'h5'>> {
level?: typeof TITLE_ELE_LIST[number];
}
declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLElement>>;
export default Title;