Skip to content

Layouts

The Basics

Layouts

Most applications share common UI elements across pages, such as a primary navigation bar, sidebar, or footer. Layout components let you define this shared UI once and wrap your pages with it automatically.

Creating Layouts

A layout is a standard component that accepts child content. There is nothing Inertia-specific about it.

1<script setup>
2import { Link } from "@inertiajs/vue3"
3</script>
4 
5<template>
6 <main>
7 <header>
8 <Link href="/">Home</Link>
9 <Link href="/about">About</Link>
10 <Link href="/contact">Contact</Link>
11 </header>
12 <article>
13 <slot />
14 </article>
15 </main>
16</template>
1<script setup>
2import { Link } from "@inertiajs/vue3"
3</script>
4 
5<template>
6 <main>
7 <header>
8 <Link href="/">Home</Link>
9 <Link href="/about">About</Link>
10 <Link href="/contact">Contact</Link>
11 </header>
12 <article>
13 <slot />
14 </article>
15 </main>
16</template>
1import { Link } from "@inertiajs/react"
2 
3export default function Layout({ children }) {
4 return (
5 <main>
6 <header>
7 <Link href="/">Home</Link>
8 <Link href="/about">About</Link>
9 <Link href="/contact">Contact</Link>
10 </header>
11 <article>{children}</article>
12 </main>
13 )
14}
1import { Link } from "@inertiajs/react"
2 
3export default function Layout({ children }) {
4 return (
5 <main>
6 <header>
7 <Link href="/">Home</Link>
8 <Link href="/about">About</Link>
9 <Link href="/contact">Contact</Link>
10 </header>
11 <article>{children}</article>
12 </main>
13 )
14}
1<script>
2 import { inertia } from '@inertiajs/svelte'
3 
4 let { children } = $props()
5</script>
6 
7<main>
8 <header>
9 <a use:inertia href="/">Home</a>
10 <a use:inertia href="/about">About</a>
11 <a use:inertia href="/contact">Contact</a>
12 </header>
13 <article>
14 {@render children()}
15 </article>
16</main>
1<script>
2 import { inertia } from '@inertiajs/svelte'
3 
4 let { children } = $props()
5</script>
6 
7<main>
8 <header>
9 <a use:inertia href="/">Home</a>
10 <a use:inertia href="/about">About</a>
11 <a use:inertia href="/contact">Contact</a>
12 </header>
13 <article>
14 {@render children()}
15 </article>
16</main>

You may use a layout by wrapping your page content with it directly. However, this approach forces the layout instance to be destroyed and recreated between visits.

1<script setup>
2import Layout from './Layout'
3 
4defineProps({ user: Object })
5</script>
6 
7<template>
8 <Layout>
9 <h1>Welcome</h1>
10 <p>Hello {{ user.name }}, welcome to your first Inertia app!</p>
11 </Layout>
12</template>
1<script setup>
2import Layout from './Layout'
3 
4defineProps({ user: Object })
5</script>
6 
7<template>
8 <Layout>
9 <h1>Welcome</h1>
10 <p>Hello {{ user.name }}, welcome to your first Inertia app!</p>
11 </Layout>
12</template>
1import Layout from './Layout'
2 
3export default function Welcome({ user }) {
4 return (
5 <Layout>
6 <h1>Welcome</h1>
7 <p>Hello {user.name}, welcome to your first Inertia app!</p>
8 </Layout>
9 )
10}
1import Layout from './Layout'
2 
3export default function Welcome({ user }) {
4 return (
5 <Layout>
6 <h1>Welcome</h1>
7 <p>Hello {user.name}, welcome to your first Inertia app!</p>
8 </Layout>
9 )
10}
1<script>
2 import Layout from './Layout.svelte'
3 
4 let { user } = $props()
5</script>
6 
7<Layout>
8 <h1>Welcome</h1>
9 <p>Hello {user.name}, welcome to your first Inertia app!</p>
10</Layout>
1<script>
2 import Layout from './Layout.svelte'
3 
4 let { user } = $props()
5</script>
6 
7<Layout>
8 <h1>Welcome</h1>
9 <p>Hello {user.name}, welcome to your first Inertia app!</p>
10</Layout>

Persistent Layouts

Wrapping a page with a layout as a child component works, but it means the layout is destroyed and recreated on every visit. This prevents maintaining layout state across navigations, such as an audio player that should keep playing or a sidebar that should retain its scroll position.

Persistent layouts solve this by telling Inertia which layout to use for a page. Inertia then manages the layout instance separately, keeping it alive between visits.

1<script>
2import Layout from './Layout'
3 
4export default {
5 layout: Layout,
6}
7</script>
8 
9<script setup>
10defineProps({ user: Object })
11</script>
12 
13<template>
14 <h1>Welcome</h1>
15 <p>Hello {{ user.name }}, welcome to your first Inertia app!</p>
16</template>
1<script>
2import Layout from './Layout'
3 
4export default {
5 layout: Layout,
6}
7</script>
8 
9<script setup>
10defineProps({ user: Object })
11</script>
12 
13<template>
14 <h1>Welcome</h1>
15 <p>Hello {{ user.name }}, welcome to your first Inertia app!</p>
16</template>
1import Layout from './Layout'
2 
3const Welcome = ({ user }) => {
4 return (
5 <>
6 <h1>Welcome</h1>
7 <p>Hello {user.name}, welcome to your first Inertia app!</p>
8 </>
9 )
10}
11 
12Welcome.layout = (page) => <Layout>{page}</Layout>
13 
14export default Welcome
1import Layout from './Layout'
2 
3const Welcome = ({ user }) => {
4 return (
5 <>
6 <h1>Welcome</h1>
7 <p>Hello {user.name}, welcome to your first Inertia app!</p>
8 </>
9 )
10}
11 
12Welcome.layout = (page) => <Layout>{page}</Layout>
13 
14export default Welcome
1<script module>
2 export { default as layout } from './Layout.svelte'
3</script>
4 
5<script>
6 let { user } = $props()
7</script>
8 
9<h1>Welcome</h1>
10<p>Hello {user.name}, welcome to your first Inertia app!</p>
1<script module>
2 export { default as layout } from './Layout.svelte'
3</script>
4 
5<script>
6 let { user } = $props()
7</script>
8 
9<h1>Welcome</h1>
10<p>Hello {user.name}, welcome to your first Inertia app!</p>

Vue 3.3+ users may alternatively use defineOptions to define a layout within <script setup>:

1<script setup>
2import Layout from './Layout'
3defineOptions({ layout: Layout })
4</script>
1<script setup>
2import Layout from './Layout'
3defineOptions({ layout: Layout })
4</script>

Arrow function components should be wrapped in an array. Without the array, Inertia cannot distinguish them from render functions at runtime:

1const ArrowLayout = ({ children }) => <main>{children}</main>
2 
3Welcome.layout = [ArrowLayout]
1const ArrowLayout = ({ children }) => <main>{children}</main>
2 
3Welcome.layout = [ArrowLayout]

Nested Layouts

You may create more complex layout arrangements using nested layouts. Pass an array of layout components to wrap the page in multiple layers.

1<script>
2import SiteLayout from './SiteLayout'
3import NestedLayout from './NestedLayout'
4 
5export default {
6 layout: [SiteLayout, NestedLayout],
7}
8</script>
9 
10<script setup>
11defineProps({ user: Object })
12</script>
13 
14<template>
15 <h1>Welcome</h1>
16 <p>Hello {{ user.name }}, welcome to your first Inertia app!</p>
17</template>
1<script>
2import SiteLayout from './SiteLayout'
3import NestedLayout from './NestedLayout'
4 
5export default {
6 layout: [SiteLayout, NestedLayout],
7}
8</script>
9 
10<script setup>
11defineProps({ user: Object })
12</script>
13 
14<template>
15 <h1>Welcome</h1>
16 <p>Hello {{ user.name }}, welcome to your first Inertia app!</p>
17</template>
1import SiteLayout from './SiteLayout'
2import NestedLayout from './NestedLayout'
3 
4const Welcome = ({ user }) => {
5 return (
6 <>
7 <h1>Welcome</h1>
8 <p>Hello {user.name}, welcome to your first Inertia app!</p>
9 </>
10 )
11}
12 
13Welcome.layout = [SiteLayout, NestedLayout]
14 
15export default Welcome
1import SiteLayout from './SiteLayout'
2import NestedLayout from './NestedLayout'
3 
4const Welcome = ({ user }) => {
5 return (
6 <>
7 <h1>Welcome</h1>
8 <p>Hello {user.name}, welcome to your first Inertia app!</p>
9 </>
10 )
11}
12 
13Welcome.layout = [SiteLayout, NestedLayout]
14 
15export default Welcome
1<script module>
2 import SiteLayout from './SiteLayout.svelte'
3 import NestedLayout from './NestedLayout.svelte'
4 
5 export const layout = [SiteLayout, NestedLayout]
6</script>
7 
8<script>
9 let { user } = $props()
10</script>
11 
12<h1>Welcome</h1>
13<p>Hello {user.name}, welcome to your first Inertia app!</p>
1<script module>
2 import SiteLayout from './SiteLayout.svelte'
3 import NestedLayout from './NestedLayout.svelte'
4 
5 export const layout = [SiteLayout, NestedLayout]
6</script>
7 
8<script>
9 let { user } = $props()
10</script>
11 
12<h1>Welcome</h1>
13<p>Hello {user.name}, welcome to your first Inertia app!</p>

Default Layouts

The layout option in createInertiaApp lets you define a default layout for all pages, saving you from defining it on every page individually. Per-page layouts always take precedence over the default.

1import Layout from './Layout'
2 
3createInertiaApp({
4 layout: () => Layout,
5 // ...
6})
1import Layout from './Layout'
2 
3createInertiaApp({
4 layout: () => Layout,
5 // ...
6})

You may also conditionally return a layout based on the page name. For example, you may wish to exclude public pages from the default layout.

1import Layout from './Layout'
2 
3createInertiaApp({
4 layout: (name) => {
5 if (name.startsWith('Public/')) {
6 return null
7 }
8 
9 return Layout
10 },
11 // ...
12})
1import Layout from './Layout'
2 
3createInertiaApp({
4 layout: (name) => {
5 if (name.startsWith('Public/')) {
6 return null
7 }
8 
9 return Layout
10 },
11 // ...
12})

The full page object is also available as the second argument, giving you access to the page's URL, props, and other metadata.

The layout callback supports all layout formats, including arrays for nested layouts, named objects for named layouts, and tuples for static props.

Using the Resolve Callback

You may also set a default layout inside the resolve callback by mutating the resolved page component. The callback receives the component name and the full page object, which is useful when you need to conditionally apply layouts based on page data.

1import Layout from './Layout'
2 
3createInertiaApp({
4 resolve: (name) => {
5 const pages = import.meta.glob('./Pages/**/*.vue', { eager: true })
6 let page = pages[`./Pages/${name}.vue`]
7 page.default.layout = page.default.layout || Layout
8 return page
9 },
10 // ...
11})
1import Layout from './Layout'
2 
3createInertiaApp({
4 resolve: (name) => {
5 const pages = import.meta.glob('./Pages/**/*.vue', { eager: true })
6 let page = pages[`./Pages/${name}.vue`]
7 page.default.layout = page.default.layout || Layout
8 return page
9 },
10 // ...
11})
1import Layout from './Layout'
2 
3createInertiaApp({
4 resolve: (name) => {
5 const pages = import.meta.glob('./Pages/**/*.jsx', { eager: true })
6 let page = pages[`./Pages/${name}.jsx`]
7 page.default.layout = page.default.layout || ((page) => <Layout>{page}</Layout>)
8 return page
9 },
10 // ...
11})
1import Layout from './Layout'
2 
3createInertiaApp({
4 resolve: (name) => {
5 const pages = import.meta.glob('./Pages/**/*.jsx', { eager: true })
6 let page = pages[`./Pages/${name}.jsx`]
7 page.default.layout = page.default.layout || ((page) => <Layout>{page}</Layout>)
8 return page
9 },
10 // ...
11})
1import Layout from './Layout'
2 
3createInertiaApp({
4 resolve: (name) => {
5 const pages = import.meta.glob('./Pages/**/*.svelte', { eager: true })
6 let page = pages[`./Pages/${name}.svelte`]
7 return { default: page.default, layout: page.layout || Layout }
8 },
9 // ...
10})
1import Layout from './Layout'
2 
3createInertiaApp({
4 resolve: (name) => {
5 const pages = import.meta.glob('./Pages/**/*.svelte', { eager: true })
6 let page = pages[`./Pages/${name}.svelte`]
7 return { default: page.default, layout: page.layout || Layout }
8 },
9 // ...
10})

Layout Props

Persistent layouts often need dynamic data from the current page, such as a page title, the active navigation item, or a sidebar toggle. Layout props provide a way to define defaults in your layout and override them from any page.

Defining Defaults

Layout props are defined as regular component props with default values.

1<script setup>
2const props = withDefaults(defineProps<{
3 title?: string
4 showSidebar?: boolean
5}>(), {
6 title: 'My App',
7 showSidebar: true,
8})
9</script>
10 
11<template>
12 <header>{{ title }}</header>
13 <aside v-if="showSidebar">Sidebar</aside>
14 <main>
15 <slot />
16 </main>
17</template>
1<script setup>
2const props = withDefaults(defineProps<{
3 title?: string
4 showSidebar?: boolean
5}>(), {
6 title: 'My App',
7 showSidebar: true,
8})
9</script>
10 
11<template>
12 <header>{{ title }}</header>
13 <aside v-if="showSidebar">Sidebar</aside>
14 <main>
15 <slot />
16 </main>
17</template>
1export default function Layout({ title = 'My App', showSidebar = true, children }) {
2 return (
3 <>
4 <header>{title}</header>
5 {showSidebar && <aside>Sidebar</aside>}
6 <main>{children}</main>
7 </>
8 )
9}
1export default function Layout({ title = 'My App', showSidebar = true, children }) {
2 return (
3 <>
4 <header>{title}</header>
5 {showSidebar && <aside>Sidebar</aside>}
6 <main>{children}</main>
7 </>
8 )
9}
1<script>
2let { title = 'My App', showSidebar = true, children } = $props()
3</script>
4 
5<header>{title}</header>
6{#if showSidebar}
7 <aside>Sidebar</aside>
8{/if}
9<main>
10 {@render children()}
11</main>
1<script>
2let { title = 'My App', showSidebar = true, children } = $props()
3</script>
4 
5<header>{title}</header>
6{#if showSidebar}
7 <aside>Sidebar</aside>
8{/if}
9<main>
10 {@render children()}
11</main>

Static Props

You may pass static props directly in your persistent layout definition using a tuple. These props are set once when the layout is defined and don't change between page navigations.

1<script setup>
2import Layout from './Layout'
3 
4defineProps({ user: Object })
5defineOptions({
6 layout: [Layout, { title: 'Dashboard' }],
7})
8</script>
9 
10<template>
11 <h1>Dashboard</h1>
12</template>
1<script setup>
2import Layout from './Layout'
3 
4defineProps({ user: Object })
5defineOptions({
6 layout: [Layout, { title: 'Dashboard' }],
7})
8</script>
9 
10<template>
11 <h1>Dashboard</h1>
12</template>
1import Layout from './Layout'
2 
3const Dashboard = ({ user }) => {
4 return <h1>Dashboard</h1>
5}
6 
7Dashboard.layout = [Layout, { title: 'Dashboard' }]
8 
9export default Dashboard
1import Layout from './Layout'
2 
3const Dashboard = ({ user }) => {
4 return <h1>Dashboard</h1>
5}
6 
7Dashboard.layout = [Layout, { title: 'Dashboard' }]
8 
9export default Dashboard
1<script module>
2 import Layout from './Layout.svelte'
3 
4 export const layout = [Layout, { title: 'Dashboard' }]
5</script>
6 
7<script>
8 let { user } = $props()
9</script>
10 
11<h1>Dashboard</h1>
1<script module>
2 import Layout from './Layout.svelte'
3 
4 export const layout = [Layout, { title: 'Dashboard' }]
5</script>
6 
7<script>
8 let { user } = $props()
9</script>
10 
11<h1>Dashboard</h1>

Callback Props

Sometimes layout props need to be derived from the current page's props. A callback function receives the page props and returns a layout definition with computed static props.

1<script setup>
2import Layout from './Layout'
3 
4defineOptions({
5 layout: (props) => [Layout, { title: 'Profile: ' + props.auth.user.name }],
6})
7</script>
8 
9<template>
10 <h1>Profile</h1>
11</template>
1<script setup>
2import Layout from './Layout'
3 
4defineOptions({
5 layout: (props) => [Layout, { title: 'Profile: ' + props.auth.user.name }],
6})
7</script>
8 
9<template>
10 <h1>Profile</h1>
11</template>
1import Layout from './Layout'
2 
3const Profile = () => {
4 return <h1>Profile</h1>
5}
6 
7Profile.layout = (props) => [Layout, { title: 'Profile: ' + props.auth.user.name }]
8 
9export default Profile
1import Layout from './Layout'
2 
3const Profile = () => {
4 return <h1>Profile</h1>
5}
6 
7Profile.layout = (props) => [Layout, { title: 'Profile: ' + props.auth.user.name }]
8 
9export default Profile
1<script module>
2 import Layout from './Layout.svelte'
3 
4 export const layout = (props) => [Layout, { title: 'Profile: ' + props.auth.user.name }]
5</script>
6 
7<h1>Profile</h1>
1<script module>
2 import Layout from './Layout.svelte'
3 
4 export const layout = (props) => [Layout, { title: 'Profile: ' + props.auth.user.name }]
5</script>
6 
7<h1>Profile</h1>

The callback receives the page's props and may return any valid layout format: a single component, a tuple with static props, an array for nested layouts, or a named layout object. TypeScript users may use the LayoutCallback type for type safety.

Returning Props Only

When a default layout is configured in createInertiaApp, callbacks may return a plain props object instead of a full layout definition. Inertia will automatically use the default layout and merge the returned props onto it.

1<script setup>
2defineOptions({
3 layout: (props) => ({ title: 'Profile: ' + props.auth.user.name, showSidebar: false }),
4})
5</script>
6 
7<template>
8 <h1>Profile</h1>
9</template>
1<script setup>
2defineOptions({
3 layout: (props) => ({ title: 'Profile: ' + props.auth.user.name, showSidebar: false }),
4})
5</script>
6 
7<template>
8 <h1>Profile</h1>
9</template>
1const Profile = () => {
2 return <h1>Profile</h1>
3}
4 
5Profile.layout = (props) => ({ title: 'Profile: ' + props.auth.user.name, showSidebar: false })
6 
7export default Profile
1const Profile = () => {
2 return <h1>Profile</h1>
3}
4 
5Profile.layout = (props) => ({ title: 'Profile: ' + props.auth.user.name, showSidebar: false })
6 
7export default Profile
1<script module>
2 export const layout = (props) => ({
3 title: 'Profile: ' + props.auth.user.name,
4 showSidebar: false,
5 })
6</script>
7 
8<h1>Profile</h1>
1<script module>
2 export const layout = (props) => ({
3 title: 'Profile: ' + props.auth.user.name,
4 showSidebar: false,
5 })
6</script>
7 
8<h1>Profile</h1>

A static object may also be used when the props don't depend on page data.

1Dashboard.layout = { title: 'Dashboard', showSidebar: true }
1Dashboard.layout = { title: 'Dashboard', showSidebar: true }

Dynamic Props

You may also update layout props dynamically from any page component using the setLayoutProps function. TypeScript users may type these props globally.

1<script setup>
2import { setLayoutProps } from '@inertiajs/vue3'
3 
4setLayoutProps({
5 title: 'Dashboard',
6 showSidebar: false,
7})
8</script>
9 
10<template>
11 <h1>Dashboard</h1>
12</template>
1<script setup>
2import { setLayoutProps } from '@inertiajs/vue3'
3 
4setLayoutProps({
5 title: 'Dashboard',
6 showSidebar: false,
7})
8</script>
9 
10<template>
11 <h1>Dashboard</h1>
12</template>
1import { setLayoutProps } from '@inertiajs/react'
2 
3export default function Dashboard() {
4 setLayoutProps({
5 title: 'Dashboard',
6 showSidebar: false,
7 })
8 
9 return <h1>Dashboard</h1>
10}
1import { setLayoutProps } from '@inertiajs/react'
2 
3export default function Dashboard() {
4 setLayoutProps({
5 title: 'Dashboard',
6 showSidebar: false,
7 })
8 
9 return <h1>Dashboard</h1>
10}
1<script>
2import { setLayoutProps } from '@inertiajs/svelte'
3 
4setLayoutProps({
5 title: 'Dashboard',
6 showSidebar: false,
7})
8</script>
9 
10<h1>Dashboard</h1>
1<script>
2import { setLayoutProps } from '@inertiajs/svelte'
3 
4setLayoutProps({
5 title: 'Dashboard',
6 showSidebar: false,
7})
8</script>
9 
10<h1>Dashboard</h1>

Targeting Named Layouts

Nested layouts may also be defined as a named object instead of an array, allowing you to target specific layouts with props.

1<script>
2import AppLayout from './AppLayout'
3import ContentLayout from './ContentLayout'
4 
5export default {
6 layout: {
7 app: AppLayout,
8 content: ContentLayout,
9 },
10}
11</script>
1<script>
2import AppLayout from './AppLayout'
3import ContentLayout from './ContentLayout'
4 
5export default {
6 layout: {
7 app: AppLayout,
8 content: ContentLayout,
9 },
10}
11</script>
1import AppLayout from './AppLayout'
2import ContentLayout from './ContentLayout'
3 
4Dashboard.layout = {
5 app: AppLayout,
6 content: ContentLayout,
7}
1import AppLayout from './AppLayout'
2import ContentLayout from './ContentLayout'
3 
4Dashboard.layout = {
5 app: AppLayout,
6 content: ContentLayout,
7}
1<script module>
2 import AppLayout from './AppLayout.svelte'
3 import ContentLayout from './ContentLayout.svelte'
4 
5 export const layout = {
6 app: AppLayout,
7 content: ContentLayout,
8 }
9</script>
1<script module>
2 import AppLayout from './AppLayout.svelte'
3 import ContentLayout from './ContentLayout.svelte'
4 
5 export const layout = {
6 app: AppLayout,
7 content: ContentLayout,
8 }
9</script>

You may target a specific named layout by passing the layout name as the first argument to setLayoutProps.

1import { setLayoutProps } from '@inertiajs/vue3'
2 
3setLayoutProps('sidebar', {
4 collapsed: true,
5})
1import { setLayoutProps } from '@inertiajs/vue3'
2 
3setLayoutProps('sidebar', {
4 collapsed: true,
5})
1import { setLayoutProps } from '@inertiajs/react'
2 
3setLayoutProps('sidebar', {
4 collapsed: true,
5})
1import { setLayoutProps } from '@inertiajs/react'
2 
3setLayoutProps('sidebar', {
4 collapsed: true,
5})
1import { setLayoutProps } from '@inertiajs/svelte'
2 
3setLayoutProps('sidebar', {
4 collapsed: true,
5})
1import { setLayoutProps } from '@inertiajs/svelte'
2 
3setLayoutProps('sidebar', {
4 collapsed: true,
5})

Nested layouts and named layouts may also include static props using the tuple syntax.

1// Nested layouts with static props
2Dashboard.layout = [
3 [AppLayout, { title: 'Dashboard' }],
4 [ContentLayout, { padding: 'sm' }],
5]
6 
7// Named layouts with static props
8Dashboard.layout = {
9 app: [AppLayout, { theme: 'dark' }],
10 content: [ContentLayout, { padding: 'sm' }],
11}
1// Nested layouts with static props
2Dashboard.layout = [
3 [AppLayout, { title: 'Dashboard' }],
4 [ContentLayout, { padding: 'sm' }],
5]
6 
7// Named layouts with static props
8Dashboard.layout = {
9 app: [AppLayout, { theme: 'dark' }],
10 content: [ContentLayout, { padding: 'sm' }],
11}

Merge Priority

Layout props are resolved from multiple sources with the following priority (highest to lowest):

  1. Dynamic props - set via setLayoutProps()
  2. Static props - defined in the persistent layout definition (including callback props)
  3. Defaults - declared as default values on the layout component's props

Auto-Reset on Navigation

Dynamic layout props are automatically reset when navigating to a new page (unless preserveState is enabled). This ensures each page starts with a clean slate and only the layout props explicitly set by that page are applied.

Resetting Props

You may also manually reset all dynamic layout props using resetLayoutProps.

1import { resetLayoutProps } from '@inertiajs/vue3'
2 
3resetLayoutProps()
1import { resetLayoutProps } from '@inertiajs/vue3'
2 
3resetLayoutProps()
1import { resetLayoutProps } from '@inertiajs/react'
2 
3resetLayoutProps()
1import { resetLayoutProps } from '@inertiajs/react'
2 
3resetLayoutProps()
1import { resetLayoutProps } from '@inertiajs/svelte'
2 
3resetLayoutProps()
1import { resetLayoutProps } from '@inertiajs/svelte'
2 
3resetLayoutProps()