solid-route-progress

Installation

$npm i solid-route-progress
PeerVersion
solid-js1.9 or a later 1.x
@solidjs/router0.15 or 1.x, for solid-route-progress/router

Solid 2 is not supported yet.

Stylesheet

/* app.css */
@import 'tailwindcss'; /* optional */
@import 'solid-route-progress/style.css';
import 'solid-route-progress/style.css'

Browsers

The bar draws in Chrome and Edge 111, Firefox 113 and Safari 15.4 or later (@layer, plus oklch() for the default color).

FeatureChrome / EdgeFirefoxSafariWithout it
linear() trickle curve11311217.2the drift eases with ease instead
@property, for --sp-value on your own elements8512816.4those elements jump; the bar is unaffected
:dir(), for right-to-left pages1204916.4the bar fills from the left under dir="rtl"
Navigation API, for cross-document and NavigationProgress10214726.2those navigations are not tracked

Builds

Export conditionBuild
solidJSX untouched; SolidStart and vite-plugin-solid compile it themselves
defaultDOM-compiled, no server rendering
developmentdev warnings; production resolves it to false and drops them