@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
13 lines (12 loc) • 621 B
TypeScript
import { AkselColor } from "../../../types";
type BaseAlertContextProps = {
size: "medium" | "small";
status?: "announcement" | "success" | "warning" | "error";
color: AkselColor | undefined;
statusId: string;
};
declare const BaseAlertProvider: import("react").ForwardRefExoticComponent<BaseAlertContextProps & {
children: React.ReactNode;
} & import("react").RefAttributes<unknown>>, useBaseAlert: <S extends boolean = true>(strict?: S) => S extends true ? BaseAlertContextProps : BaseAlertContextProps | undefined;
export { BaseAlertProvider, useBaseAlert };
export type { BaseAlertContextProps };