Navigation bar for the preview frame #191
Replies: 4 comments 2 replies
-
Interesting idea! Currently we don't have any ways how to do this out-of-the-box. What you could do now, is to create virtual navigation bar in your Having the preview's navigation bar to be part of TutorialKit's UI as built-in component might be difficult to implement. It's not simple to control the preview ifream outside it. |
Beta Was this translation helpful? Give feedback.
-
Hi @AriPerkkio, thanks for getting back to me. I thought of creating a virtual navigation bar, the challange is that I want it to navigate to urls that are outside the hot reload of vite (an api url, or other server urls) - As soon as I navigate to these, I'll be outside of that navigation panel that'll be in the app.tsx ( I think) or would you recommend opening another IFrame there? p.s.2 |
Beta Was this translation helpful? Give feedback.
-
Hi @AriPerkkio I just had another look at the sveltekit tutorial, and they do have that feature: Can we take it from there? |
Beta Was this translation helpful? Give feedback.
-
Hey @noam-honig! The way svelte implement this is by having the iframe send a message to the parent page. You can view the logic here. So the rendered page is in charge of informing of the current URL to the parent. This only works if the iframe is rendering html. If the content is an image or any non- We should be able to do something though at the WebContainer level though. This has been mentioned several times in the past and it keeps coming up. In the meantime, we could expose a way to customise the rendered |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm the creator or remult, a full stack fully typed framework - and I'm working on transforming my existing tutorials Build a Full-Stack React Application
to use this tutorial kit - so you'll probably hear a lot of question from me in the near future :)
Anyhow - as part of explaining the full stack application, I want to ask the students to look at different urls, for example:
/api/tasks
/api/admin
etc...
Currently the preview panel doesn't have a url and doesn't have a back and reload buttons - Is there a way to add them?
Beta Was this translation helpful? Give feedback.
All reactions