Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

_pathlessLayout.tsx

17 lines378 Bytes

1import { createFileRoute } from '@tanstack/solid-router'
2import { Outlet } from '@tanstack/solid-router'
3​
4export const Route = createFileRoute('/_pathlessLayout')({
5 component: LayoutComponent,
6})
7​
8function LayoutComponent() {
9 return (
10 <div class="p-2">
11 <div class="border-b">I'm a pathless layout</div>
12 <div>
13 <Outlet />
14 </div>
15 </div>
16 )