UNPKG

@navikt/ds-react

Version:

React components from the Norwegian Labour and Welfare Administration.

18 lines (17 loc) 656 B
import { BaseAlert } from "../../base-alert"; type GlobalAlertCloseButtonProps = BaseAlert.CloseButtonProps; /** * @see 🏷️ {@link GlobalAlertCloseButtonProps} * @example * ```jsx * <GlobalAlert> * <GlobalAlert.Header> * <GlobalAlert.Title>Info title</GlobalAlert.Title> * <GlobalAlert.CloseButton onClick={() => alert("Closed!")} /> * </GlobalAlert.Header> * </GlobalAlert> * ``` */ declare const GlobalAlertCloseButton: import("react").ForwardRefExoticComponent<BaseAlert.CloseButtonProps & import("react").RefAttributes<HTMLButtonElement>>; export { GlobalAlertCloseButton }; export type { GlobalAlertCloseButtonProps };