You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I am proposing to add a NavLink component to the project with support for defining className dynamically. This will allow for greater flexibility in styling links based on different conditions.
Proposed Implementation Details
The NavLink component will be developed with the following characteristics:
Will extend Next.js LinkProps props.
Will include support for dynamic className, which can be a static string or a function that returns a CSS class string.
Will use usePathname (or equivalent functionality) to determine whether the link is active, applying the appropriate CSS class based on the current URL.
To reduce notifications, issues are locked. Your issue will be unlock when we will add label as 🏁 status: ready for dev. Check out the contributing guide for more information.
What feature?
Description
Currently, I am proposing to add a NavLink component to the project with support for defining className dynamically. This will allow for greater flexibility in styling links based on different conditions.
Proposed Implementation Details
The NavLink component will be developed with the following characteristics:
Example of use
Add screenshots
Record
The text was updated successfully, but these errors were encountered: