useLayout

The useLayout hook provides access to the layout context, which various layout data & method to reassemble the page container, its purposely server for the template layout.

Example

returnDescriptionTypeDefault
typeIndicates the current layout type, which may influence how components are displayed.LayoutType-
adaptiveCardActiveIndicating whether an adaptive card layout is active.boolean | undefined-
pageContainerReassembleOptional function to dynamically reassemble the page container structure with custom properties and components.(props: PageContainerReassembleProps) => ReactNode | undefined-