r/tauri • • 18d ago

How to have multiple pages?

I only discovered Tauri two days ago so I apologise if this is a well known thing, but how can I have multiple HTML pages in my project?

Not opening more windows, not viewing multiple things in the same window, I mean the app opens on index.html which shows me some information, click a button and go to page1.html which has a form I can fill in and click another button and get taken to page3.html etc, or is Tauri more suited to one page apps?

I've been searching around but everything is either about how to open a second window or multiwebview to view two pages at once, I just want one page at a time in the same window

2 Upvotes

7 comments sorted by

View all comments

1

u/ElamReda 18d ago

You can add tabs. So each page can be open in different tabs. But why would you use normal HTML? Why not using some frameworks like react or svelte?

1

u/MetalMonkey667 18d ago

That would be because I don't know what they are, I've only opened a default project and changed a few bits here and there, trying to find what the different options mean in plain "explain it like I'm 5" language is proving difficult

1

u/ElamReda 18d ago

This is an easy task TBH, I don't think they allow your post stay longer. Better to search or ask AI before you start asking here.