/** * @typedef {Object} RouteProps * @property {string} path - Path to match relative to the parent * Route. When `path` is missing, it will render only when the * parent's route path is matched exactly. * @property {string[] | string} scroll - Elements to scroll when the * route matches. * @property {Record} params - Key-value pairs params * to encode and replace on the path. * @property {When} collapse - To hide the route instead of * removing it from the document. * @property {When} when - To stop rendering the route even if * the path matches. * @property {JSX.Element} fallback - Fallback children. * @property {JSX.Element} children - JSX.Element to render. */ /** * Renders children if the path matches the current location * * @param {Partial} props * @returns {JSX.Element} * @url https://pota.quack.uy/components/Route */ export function Route(props: Partial): JSX.Element; export namespace Route { function Default(props: { children?: JSX.Element; }): JSX.Element; } export type RouteProps = { /** * - Path to match relative to the parent * Route. When `path` is missing, it will render only when the * parent's route path is matched exactly. */ path: string; /** * - Elements to scroll when the * route matches. */ scroll: string[] | string; /** * - Key-value pairs params * to encode and replace on the path. */ params: Record; /** * - To hide the route instead of * removing it from the document. */ collapse: When; /** * - To stop rendering the route even if * the path matches. */ when: When; /** * - Fallback children. */ fallback: JSX.Element; /** * - JSX.Element to render. */ children: JSX.Element; }; //# sourceMappingURL=Route.d.ts.map