Rasengan Logo
Rasengan Logo
  • Docs
  • Blog
  • Showcase
  • Support us
Using stable versionv1.2.0
Documentation
Packages
Templates
Rasengan UI Kit
Using stable versionv1.2.0
Documentation
Packages
Templates
Rasengan UI Kit

API REFERENCE

NavLink Component

Wraps <Link> with additional props for styling active and pending states.

  • Automatically applies classes to the link based on its active and pending states
    • Note that pending is only available with Framework and Data modes.
  • Automatically applies aria-current="page" to the link when the link is active. See aria-current on MDN.
  • States are additionally available through the className, style, and children render props.

Usage

Here's an example of how to use the <NavLink> component:

tsximport { NavLink } from "rasengan";
tsx<NavLink to="/message">Messages</NavLink> // Using render props <NavLink to="/messages" className={({ isActive, isPending }) => isPending ? "pending" : isActive ? "active" : "" } > Messages </NavLink>

Props

Learn more about the <NavLink> component here.

Link Component
Outlet Component

ON THIS PAGE

Usage
Props
Rasengan Logo
Rasengan Logo

Resources

  • Docs
  • Packages
  • Blog
  • Showcase
  • Support us

Community

  • Github
  • X (Twitter)

Subscribe to the Newsletter

Stay informed to the news about rasengan.js including new releases, events, etc...

© 2024-2026 Rasengan Labs, All rights reserved.