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