This repository has been archived on 2024-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
Nexus-Polestar/astro/components/sidebar/TabWithControls.astro

14 lines
630 B
Text
Raw Normal View History

2023-01-27 23:18:17 -05:00
---
const { Default, Name, Icon, Page } = Astro.props;
---
<li data-tab={Page} class=`sidebar-tab has-navigation ${Default}`>
<i class={Icon}></i>
<p>{Name}</p>
<div id="Tab" class="webview-navigation">
<button onclick='document.querySelector(".active webview").goBack()'><i class="fa-solid fa-arrow-left-long"></i></button>
<button onclick='document.querySelector(".active webview").goForward()'><i class="fa-solid fa-arrow-right-long"></i></button>
<button onclick='document.querySelector(".active webview").reload()'><i class="fa-solid fa-arrow-rotate-right"></i></button>
</div>
</li>