Socket
Book a DemoInstallSign in
Socket

solid-pwa-navigation

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid-pwa-navigation

A library that brings App-like navigation to PWAs and Web Apps

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
5
Maintainers
0
Weekly downloads
 
Created
Source

solid-pwa-navigation

A library that brings App-like navigation to PWAs and Web Apps.

This package provides routers that emulate Tab and Stack navigation behaviors.

NPM Package

npm install solid-pwa-navigation

Documentation

Highlights

<TabRouter /> is designed to handle navigation between pages that are always mounted. <StackRouter /> is designed to mimic a stack of cards, each new page is put on top of the others and going back removes (and destroys) that page.

You can combine them to obtain the classic app experience with a bottom drawer containing the main tabs and each tab having a dedicated stack of pages.

To improve compatibility with modern mobile devices that have notches and other screen-obstructing elements, this library exports a couple of utility components and objects that provide padding for the so-called "safe area", namely <SafeAreaScreen> and safeAreaPaddingStyles. This, together with viewport-fit=cover in the viewport meta-tag, will allow you to emulate the app experience as close as possible. You consult the demo for a fully configured example.

Check out the demo here

and the source code here

Keywords

solid

FAQs

Package last updated on 01 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts