Title.d.ts 505 B

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