Lime Web Components API Documentation - v7.4.0
    Preparing search index...

    Interface AlertOptions

    Options for alert dialogs

    Customize the appearance and button text of alert dialogs displayed via Notifications.alert.

    interface AlertOptions {
        acceptText?: string;
        icon?: string | Icon;
    }
    Index

    Properties

    Properties

    acceptText?: string

    Text to display on the acknowledgment button

    Defaults to "OK" if not specified.

    icon?: string | Icon

    Icon to display in the dialog header

    Can be either a string icon name or an Icon object with name and color properties. The icon provides visual context for the alert type (error, warning, info, etc.).

    import type { AlertOptions } from '@limetech/lime-web-components';

    const withIconName: AlertOptions = { icon: 'warning_shield' };

    const withIconObject: AlertOptions = {
    icon: { name: 'error', color: 'rgb(var(--color-red-default))' },
    };