@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
18 lines (17 loc) • 649 B
TypeScript
import { BaseAlert } from "../../base-alert";
type GlobalAlertTitleProps = BaseAlert.TitleProps;
/**
* Title component for GlobalAlert. Remember to use correct heading-level with the `as` prop.
* @see 🏷️ {@link GlobalAlertTitleProps}
* @example
* ```jsx
* <GlobalAlert>
* <GlobalAlert.Header>
* <GlobalAlert.Title as="h2">Info title</GlobalAlert.Title>
* </GlobalAlert.Header>
* </GlobalAlert>
* ```
*/
declare const GlobalAlertTitle: import("react").ForwardRefExoticComponent<BaseAlert.TitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
export { GlobalAlertTitle };
export type { GlobalAlertTitleProps };