@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
18 lines (17 loc) • 818 B
TypeScript
import { type FunctionalComponent as FC } from '../../stencil-public-runtime';
import type { JSXBase } from '../../stencil-public-runtime';
import type { HeadingLevel } from '../../schema';
type HGroupProps = JSXBase.HTMLAttributes<HTMLElement>;
type BaseProps = JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement> & {
level?: HeadingLevel;
};
type HeadlineProps = BaseProps;
export type HeadingProps = HeadlineProps & {
secondaryHeadline?: string;
HeadingGroupProps?: HGroupProps;
SecondaryHeadlineProps?: JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement>;
};
type HeadlineTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'strong';
export declare function getHeadlineTag(level: HeadingLevel | number): HeadlineTag;
declare const KolHeadingFc: FC<HeadingProps>;
export default KolHeadingFc;