Matterway
    Preparing search index...

    Variable modalConst

    modal: ModalT = ...

    Modal component serving as the main container for UI elements. Typically used as root container with showUI.

    Basic usage with headerBar and group

    modal([
    headerBar({
    title: 'Welcome to the Matterway SDK',
    description: 'This is a sample welcome message.',
    }),
    group([
    inputField({
    name: 'firstName',
    label: 'First name',
    defaultValue: 'Jane',
    }),
    ]),
    ]);

    With options object using overlay

    modal(
    {overlay: true},
    [
    headerBar({
    title: 'Welcome to the Matterway SDK',
    description: 'This is a sample welcome message.',
    }),
    group([
    inputField({
    name: 'email',
    label: 'Email',
    type: 'email',
    }),
    ]),
    ]
    );

    Either the content to display or the options object

    Content to display when first parameter is options object