solid-router-navigation

Guide SolidJS navigation with Solid Router links, redirects, and parameters.

Updated Jan 4, 2026
One-click install
npx skills add https://github.com/vallafederico/solid-ai-rules --skill solid-router-navigation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solid-router-navigation
Source: https://github.com/vallafederico/solid-ai-rules/tree/main/.claude/skills/solid-router-navigation
Command: npx skills add https://github.com/vallafederico/solid-ai-rules --skill solid-router-navigation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies navigation within SolidJS applications by providing clear guidance on using the Solid Router for various navigation scenarios, from declarative links to programmatic control and parameter handling.

Core Features & Use Cases

  • Declarative Linking: Use the <A> component for creating navigation links with active state styling.
  • Programmatic Navigation: Employ useNavigate for imperative redirects after actions.
  • Parameter Management: Easily access route parameters (useParams) and search parameters (useSearchParams).
  • Server-Side Redirects: Utilize the redirect function for navigation initiated on the server.
  • Use Case: When building a user profile page, you can use useParams to get the user ID from the URL and useSearchParams to handle pagination or filtering.

Quick Start

Use the A component to create a link to the home page with an active class.

Frequently Asked Questions about solid-router-navigation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle programmatic navigation in SolidJS?

Programmatic navigation in SolidJS is handled using the useNavigate hook from Solid Router, enabling imperative redirects after user actions. This provides direct control over the browser history stack.

What is the best way to create navigation links with active states in SolidJS?

Creating navigation links with active states in SolidJS uses the declarative A component from Solid Router. It automatically applies active class styling when the current route matches the link destination.

How do I access route parameters and search parameters in SolidJS?

Accessing route and search parameters in SolidJS uses the useParams and useSearchParams hooks from Solid Router. These hooks extract dynamic URL segments and query strings to build interactive UIs.

Can I use Solid Router for server-side redirects?

Yes, Solid Router supports server-side redirects by utilizing the dedicated redirect function. This enables navigation initiated on the server before the application fully hydrates on the client.

Does Solid Router handle URL search parameters for filtering and pagination?

Yes, Solid Router handles URL search parameters for filtering and pagination via the useSearchParams hook. It allows developers to read and update query strings to build dynamic user interfaces.