Skip to content

A simple router for Stencil apps or vanilla Web Component apps

License

Notifications You must be signed in to change notification settings

INSPIRATIONlabs/stencil-router

 
 

Repository files navigation

npm

Stencil Router

A simple router, inspired by React Router v4, for Stencil apps and vanilla Web Component apps.

<stencil-router>
  <stencil-route-switch scrollTopOffset={0}>
    <stencil-route url="/" component="landing-page" exact={true} />
    <stencil-route url="/demos" component="demos-page" />
    <stencil-route url="/other" component="other-page" />
    <stencil-route component="page-not-found" />
  </stencil-route-switch>
</stencil-router>

Included components and all other information can be found in our wiki.

About

A simple router for Stencil apps or vanilla Web Component apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.0%
  • HTML 1.3%
  • CSS 0.7%