sparc - v1.0.1
    Preparing search index...
    interface ModalProps {
        as?: ContainerTags;
        backdrop?: boolean;
        class?: string;
        closeOnFocusLoss?: boolean;
        containerSelector?: string;
        id?: string;
        onCloseHandler?: () => void;
        onOpenHandler?: () => void;
        selectableItems?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    backdrop?: boolean

    Indicates whether to blur and darken the parent element

    class?: string

    Regular HTML class names

    closeOnFocusLoss?: boolean

    Indicates if Modal should be closed when user clicks outside it's bounding box.

    true
    
    containerSelector?: string

    Valid CSS selector targeting the current element's parent.

    const myElement = new Element({...,containerSelector:"#login-form",...})
    myElement.render() //my element will be appended to #login-form
    id?: string

    if a value is provided, sparc will not use automatic UUID generation!

    onCloseHandler?: () => void

    Function that is called when the modal closes

    onOpenHandler?: () => void

    Function that is called when the modal opens

    selectableItems?: boolean