Skip to content

isPopover

Reactive
ts
function isPopover(key: string): boolean;

Returns a boolean indicating whether the given key belongs to the modalGroups.popover group.

Example

ts
import {
    createModal,
    withModalGroups,
    modalGroups,
    isPopover,
} from "@monstermann/signals-modal";

createModal("key", () => {
    withModalGroups([modalGroups.popover]);
});

isPopover("key"); // true