Hiyve Components - v1.0.0
    Preparing search index...

    Interface AlertsProps

    Props for the Alerts component.

    interface AlertsProps {
        alerts: AlertItem[];
        colors?: Partial<AlertsColors>;
        labels?: Partial<AlertsLabels>;
        onAcknowledge?: (alertId: string) => void;
        onDismiss?: (alertId: string) => void;
    }
    Index

    Properties

    alerts: AlertItem[]

    Array of alert items to display.

    colors?: Partial<AlertsColors>

    Partial color overrides merged with built-in defaults. See AlertsColors.

    labels?: Partial<AlertsLabels>

    Partial label overrides merged with built-in defaults. See AlertsLabels.

    onAcknowledge?: (alertId: string) => void

    Called when the user presses the acknowledge button on an alert card. Receives the alert's ID.

    onDismiss?: (alertId: string) => void

    Called when the user presses the dismiss button on an alert card. Receives the alert's ID.