vuepress-theme-hope
Version:
A light vuepress theme with tons of features
12 lines • 537 B
JavaScript
import { computed } from "vue";
import { useThemeLocale } from "@theme-hope/composables/useTheme";
import { useWindowSize } from "@theme-hope/composables/useWindowSize";
export const useNavbarAutoHide = () => {
const themeLocale = useThemeLocale();
const { isMobile } = useWindowSize();
return computed(() => {
const { navbarAutoHide = "mobile" } = themeLocale.value;
return navbarAutoHide !== "none" && (navbarAutoHide === "always" || isMobile.value);
});
};
//# sourceMappingURL=useNavbarAutoHide.js.map