@nordcom/nordstar-heading
Version:
Component used to display title/heading text.
16 lines • 599 B
TypeScript
import { As, InternalForwardRefRenderFunction } from '../../../core/system';
export type HeadingProps = {
level?: 'h1' | 'h2' | 'h3' | 'h4';
as?: As;
};
/**
* `<Heading/>`, a component to render headings.
*
* @param {object} props - `<Heading/>` props.
* @param {string} [props.level='h1'] - The level of the heading.
* @param {As} [props.as] - The element to render the component as.
* @returns {ReactNode} The `<Heading/>` component.
*/
declare const Heading: InternalForwardRefRenderFunction<"h1", HeadingProps, never>;
export default Heading;
//# sourceMappingURL=heading.d.ts.map