Layout
You can create custom layouts using <Refine>
and <LayoutWrapper>
components.
Both of these components can accept the listed props for customization. <Refine>
being for global customization and the <LayoutWrapper>
being for local.
You can swizzle this component to customize it with the refine CLI
Creating a Custom Layout
Let's start with creating a <CustomLayout/>
component using LayoutProps
from @pankod/refine-core
with the following code:
We used useMenu
hook to get the list of current resources and print it. We also use useRouterContext
hook to get the router context and use it to create a link.
This example demonstrated how to configure a global layout. To learn how to use global layout in custom pages and make local modifications per page, refer to the <LayoutWrapper>
docs. →