Open History to see the last commit
1import { createFileRoute } from '@tanstack/solid-router'
2import { Link, Outlet } from '@tanstack/solid-router'
3β
4export const Route = createFileRoute('/_layout/_layout-2')({
5 component: LayoutComponent,
6})
7β
8function LayoutComponent() {
9 return (
10 <div>
11 <div>I'm a nested layout</div>
12 <div class="flex gap-2 border-b">
13 <Link
14 to="/layout-a"
15 activeProps={{
16 class: 'font-bold',
17 }}
18 >
19 Layout A
20 </Link>
21 <Link
22 to="/layout-b"
23 activeProps={{
24 class: 'font-bold',
25 }}
26 >
27 Layout B
28 </Link>
29 </div>
30 <div>
31 <Outlet />
32 </div>
33 </div>
34 )
35}