Daily.createFrame(parentEl, { properties })
Prebuilt
Custom
Creates a DailyCall instance and embeds a Daily Prebuilt iframe in the DOM. Both arguments are optional. If parentEl is provided, the iframe is appended as a child of that element; otherwise it is appended to document.body.
Parameters
Optional. The DOM element to append the Daily Prebuilt
iframe into. Defaults to document.body if omitted.Optional configuration. If
url is not set here, it must be provided when calling join() or load(). See DailyCallOptions for the full list of options.Prebuilt-specific options
createFrame() supports three options that are specific to how it embeds and controls the Daily Prebuilt iframe.
iframeStyle
A JavaScript CSS properties object applied directly to theiframe element. If omitted, the default styles depend on the parent: when appended to document.body the iframe floats as a window in the bottom-right corner; when appended to a specific parentEl it fills the width and height of that element.
layoutConfig
Customizes Grid View tile counts when Active Speaker View is disabled (via theactiveSpeakerMode property or setActiveSpeakerMode()). Specifies the minimum and maximum participant tiles per page when the browser is resized.
userData
Custom data associated with the local participant. In Daily Prebuilt, settinguserData.avatar to a publicly accessible image URL displays that image on muted participant tiles and in the People tab. See setUserData() to update it after joining.

Return value
Returns a newDailyCall instance.