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

    Interface ConfirmOptions

    Options for confirmation dialogs

    Customize the appearance and button labels of confirmation dialogs displayed via Notifications.confirm.

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

    Properties

    acceptText?: string

    Text to display on the button for the accept action

    Use action-oriented text that clearly indicates what will happen when clicked (e.g., "Delete", "Save", "Continue").

    cancelText?: string

    Text to display on the button for the cancel action

    Use text that clearly indicates the action will be cancelled (e.g., "Cancel", "Keep", "Go Back").

    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. Use icons that match the action's severity (e.g., red for destructive actions).

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

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

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