Provides a modal component for displaying tabs with content and handling user interactions.

  • Type Parameters

    • Data extends {} = Record<string, any>

      The type of data to be submitted to the modal.

    • Payload = any

      The type of payload to be passed to the onSubmit function.

    Parameters

    Returns {
        close: () => Promise<boolean>;
        open: (
            url?: string | URL,
            target?: string,
            features?: string,
        ) => null | Window;
        pickData: () => void;
        render: () => Element;
    }

    • An object containing the following methods:
      • open: A behavior subject representing the open state of the modal.
      • render: A function that renders the modal component.
      • pickData: A function that triggers the opening of the modal.
      • close: A function that closes the modal.
    • Readonlyclose: () => Promise<boolean>
    • Readonlyopen: (url?: string | URL, target?: string, features?: string) => null | Window
    • ReadonlypickData: () => void
    • Readonlyrender: () => Element