You're reading the 1.x docs. Go to latest

Skip to content

Packages ​

lit-ui-router renders the router's views as Lit components. The other packages layer optional integrations on it or on @uirouter/core; each is published and versioned independently and takes the router as a peer, so you add only the ones you need.

Each entry lists its facets:

  • subject: router for the router family; lit for Lit tooling with no router dependency.
  • layer: agnostic when the package peers on @uirouter/core and its runtime only, lit when it also peers on lit or lit-ui-router. eslint-plugin-lit-ui-router peers only on eslint and is lit by what it lints.
  • runtime: where its code runs: browser, server, build, type-check, editor or ci.
  • entry points: the import specifiers its package.json exports map offers.

The Effect, MobX and Signals bindings each come as two packages: a framework-agnostic one for @uirouter/core, and a Lit one for lit-ui-router. The Effect, MobX and Signals overviews say which to install.

Renderer ​

lit-ui-router ​

State-based routing for Lit.

  • Facets: subject router · layer lit · runtime browser
  • Entry points: lit-ui-router, lit-ui-router/context, lit-ui-router/pure, lit-ui-router/register, lit-ui-router/ui-router.register, lit-ui-router/ui-view.register
  • Package page · API reference · Releases

Reactivity ​

ui-router-effect ​

Effect bindings for UI-Router: a framework-agnostic SubscriptionRef of the router's current state.

lit-ui-router-effect ​

Effect bindings for lit-ui-router: a SubscriptionRef of the route and ref-following Lit ReactiveControllers.

ui-router-mobx ​

MobX bindings for UI-Router: a framework-agnostic observable store of the router's current state.

lit-ui-router-mobx ​

MobX bindings for lit-ui-router: an observable router store and reaction-based Lit ReactiveControllers.

ui-router-signals ​

TC39 Signals for UI-Router: a framework-agnostic signal mirror of the router's current state.

lit-ui-router-signals ​

TC39 Signals bindings for lit-ui-router: watcher-based Lit ReactiveControllers over ui-router-signals.

Location ​

ui-router-navigation-location-plugin ​

UI Router Location Plugin for Navigation API.

Server ​

ui-router-server ​

Server-side UI-Router state matching for Connect, Vite, Hono, and fetch handlers.

  • Facets: subject router · layer agnostic · runtime server, build
  • Entry points: ui-router-server, ui-router-server/connect, ui-router-server/fetch, ui-router-server/hono, ui-router-server/location, ui-router-server/matcher, ui-router-server/prerender, ui-router-server/redirects, ui-router-server/simulate, ui-router-server/ssr, ui-router-server/ssr/client, ui-router-server/url-config, ui-router-server/vite
  • Package page · API reference · Releases

lit-ui-router-ssr ​

Static prerendering for lit-ui-router: mount verdicts in, an emitted site out.

  • Facets: subject router · layer lit · runtime browser, build
  • Entry points: lit-ui-router-ssr, lit-ui-router-ssr/client, lit-ui-router-ssr/register, lit-ui-router-ssr/testing, lit-ui-router-ssr/vite
  • Package page · API reference · Releases

DX ​

ui-router-registry ​

Typed state names and params for UI-Router: a types-only registry for @uirouter/core.

  • Facets: subject router · layer agnostic · runtime type-check
  • Entry points: ui-router-registry, ui-router-registry/effect, ui-router-registry/mobx, ui-router-registry/signals
  • Package page · API reference · Releases

eslint-plugin-lit-ui-router ​

ESLint rules that understand lit-ui-router directives: hrefless anchors, inert hrefs, aria-current conflicts and misplaced directives.

  • Facets: subject router · layer lit · runtime editor, ci
  • Entry points: eslint-plugin-lit-ui-router
  • Package page · Releases
The companion packages as LEGO bricks, drawn in the round, each seated on the core's baseplate or on the brick it peers, the server on a plate of its ownThe companion packages as LEGO bricks, drawn in the round, each seated on the core's baseplate or on the brick it peers, the server on a plate of its own
The Altitude Atlas draws each runtime companion as a brick sized by its authored files and seated on what it peers, in a model you can turn and explode.