UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

22 lines (21 loc) 1.02 kB
import { type FunctionalComponent as FC } from '../../stencil-public-runtime'; import type { JSXBase } from '../../stencil-public-runtime'; import type { HeadingLevel, HeadingVariantPropType } from '../../schema'; type HGroupProps = JSXBase.HTMLAttributes<HTMLElement>; type BaseProps = JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement> & { level?: HeadingLevel; }; type HeadlineProps = BaseProps & { variant?: HeadingVariantPropType; }; export type HeadingProps = HeadlineProps & { secondaryHeadline?: string; HeadingGroupProps?: HGroupProps; SecondaryHeadlineProps?: JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement>; }; type HeadlineTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'strong'; type SubHeadlineTag = 'span' | HeadlineTag; export declare function getHeadlineTag(level: HeadingLevel | number): HeadlineTag; export declare function getSubHeadlineTag(level: HeadingLevel | number): SubHeadlineTag; declare const KolHeadingFc: FC<HeadingProps>; export default KolHeadingFc;