Skip to main content
Version: 3.xx.xx



<LayoutWrapper> wraps its contents in refine's layout with all customizations made in <Refine> component. It is the default layout used in resource pages. It can be used in custom pages to use global layout.

This component accepts layout customizations to further customize the layout parameters (Title, Sider, Header, Footer, Layout, OffLayoutArea) defined in <Refine> component.


<LayoutWrapper> can be used inside custom pages to use global layout with all its customizations.

An example use in a custom page may look like this:

import { Refine, Authenticated, LayoutWrapper } from "@pankod/refine-core";

import routerProvider from "@pankod/refine-react-router-v6";
import dataProvider from "@pankod/refine-simple-rest";
import "@pankod/refine/dist/styles.min.css";

import { PostList } from "pages/posts";

const API_URL = "";

const AuthenticatedPostReview = () => {
return (
<LayoutWrapper Sider={() => <></>}>
<PostReview />

const App: React.FC = () => {
return (
routes: [
exact: true,
component: AuthenticatedPostReview,
path: "/authenticated-page",
] as typeof routerProvider.routes,
resources={[{ name: "posts", list: PostList }]}

export default App;

In this example, we hide the left sider only for this page. The rest should look same as resource pages.

API Reference


*: These props have default values in RefineContext and can also be set on <Refine> component.