Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to make a global layout? - SolidJS
S
SolidJS
โข
4y ago
โข
4 replies
Pridgey
How to make a global layout?
I
'd like to make a single layout for all of my pages within the route structure
, but I
'm not quite sure how to do this
.
If I make a
routes/(root).tsx
routes/(root).tsx
file
, then the
/
/
path shows up as that html
& css
, but nothing from
routes/index.tsx
routes/index.tsx
populates the
<Outlet />
<Outlet />
. And if I navigate to
/login
/login
then the html
& css from the layout doesn
't appear at all
.
So I
'm not sure what it should be instead
.
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to make a layout for every page except index?
S
SolidJS / support
3y ago
How to make components with multiple global states
S
SolidJS / support
8mo ago
In a File Route how to make it ignore the parent layout?
S
SolidJS / support
15mo ago
How to make a map?
S
SolidJS / support
15mo ago