<PopupPageLayout />

Constructor

# <PopupPageLayout children data-testid selectedIdx onPageChange />

PropTypes:
Name Type Required Description Default
children node No An array of components which are rendered as individual pages []
data-testid string No Internal prop used for testing function()
selectedIdx number No The index of the currently shown page 0
onPageChange func No Callback fired when a user navigates the page layout or closes the popup. The callback is passed the current page index and the next page index or `null` if the popup was closed. If the children of the layout passed a `data` prop, this is passed instead of the index for easier consumption.

View Source Popup/PopupInsert/PopupPageLayout/index.js, line 11

Example