UNPKG

@utrecht/component-library-react

Version:

React component library bundle for the Municipality of Utrecht based on the NL Design System architecture

21 lines 880 B
/** * @license EUPL-1.2 * Copyright (c) 2020-2024 Frameless B.V. * Copyright (c) 2021-2024 Gemeente Utrecht */ import { HTMLAttributes, ReactNode } from 'react'; export declare const ROLES: readonly ["status", "alert"]; export type AlertRole = (typeof ROLES)[number]; export declare const isAlertRole: <T>(x: unknown) => x is T; export declare const TYPES: readonly ["error", "warning", "info", "ok"]; export type AlertType = (typeof TYPES)[number]; export declare const isAlertType: <T>(x: unknown) => x is T; export interface AlertProps extends HTMLAttributes<HTMLDivElement> { icon?: ReactNode; type?: string | AlertType; role?: string | AlertRole; } export declare const Alert: import("react").ForwardRefExoticComponent<AlertProps & { children?: ReactNode | undefined; } & import("react").RefAttributes<HTMLDivElement>>; //# sourceMappingURL=Alert.d.ts.map