[]previous and next page

AProps

Props of A.

Props of A. to is a registered path or href, relative to the current location or absolute within the app. A literal pattern with params (/posts/:id) needs exactly its params, typed from the pattern; see ParamsOption. Without to (a raw href) params is the open record.

Import#

ts
import type { AProps } from "@shadow-js/router";

Signature#

ts
type AProps<P extends HrefOf = never> = ABaseProps & {
  readonly to?: P;
} & ParamsOption<P>