matter-labs / zksync-docs

Developer documentation site for zkSync community.
https://docs.zksync.io/
Apache License 2.0
6 stars 17 forks source link

feat: create code switcher tab #8

Closed itsacoyote closed 3 months ago

itsacoyote commented 4 months ago

What :computer:

Why :hand:

Evidence :camera:

Screenshot 2024-03-27 at 3 21 48 PM

Example set up in the Getting Started page to show how it can be used. NuxtUI has a UTabs component that can be used plainly if we didn't want to use this. This new component provides a way to have tabbed content that can be loaded from partial markdown files to help split up content and make editing potentially easier.

A future feature to implement in this component would be to have a way to track which tab is actively selected and update similar tabs to the same selected tab. Also store this selected tab in localStorage potentially so that the preferred tab for the user is always selected across the site.

github-actions[bot] commented 4 months ago

Visit the preview URL for this PR (updated for commit 40708ac):

https://zksync-docs-staging-5eb09--pr8-itsacoyote-devrl-448-blokitwu.web.app

(expires Mon, 08 Apr 2024 15:44:12 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: bfaafba5fa82d4f63473aaa76a21fabf1fbb3a11