Expand description

The Sycamore Router.

Structs

A router integration that uses the HTML5 History API to keep the UI in sync with the URL.

A list of Segments.

Props for Router.

Enums

Represents a capture of an URL segment or segments.

Represents an URL segment or segments.

Traits

A router integration provides the methods for adapting a router to a certain environment (e.g. history API).

Trait that is implemented for enums that can match routes.

Fallible conversion between a param capture into a value.

Fallible conversion between a list of param captures into a value.

Functions

The sycamore router component. This component expects to be used inside a browser environment. For server environments, see StaticRouter.

A lower-level router component that takes an instance of your Route type. This is designed for struct Routes, which can be used to store additional information along with routes.

A router that only renders once with the given route.

Navigates to the specified url. The url should have the same origin as the app.

Navigates to the specified url without adding a new history entry. Instead, this replaces the current location with the new url. The url should have the same origin as the app.

Derive Macros

The Route procedural macro.