import { CSSProperties } from 'react'; import { Props as TextProps, TextSize } from '../Text/types'; export type HeadingSize = 1 | 2 | 3 | 4 | 5 | 6; export type Props = TextProps & { /** * `Heading` will typically render the sizes `1`, `2`, `3`, `4`, `5`, or `6`, which map to `h1`-`h6`. However, it can render any size, including non `px` values. * * @default 3 * * @example * ```jsx * import { Heading, View } from `@wp-g2/components` * * function Example() { * return ( * * Into The Unknown * Into The Unknown * Into The Unknown * Into The Unknown * Into The Unknown * Into The Unknown * * ); * } * ``` */ size: HeadingSize | TextSize | CSSProperties['fontSize']; };