Skip to main content

Dynamic Routes in Menu

· 3 min read

Learn how to add links for dynamic routes in the menu.

To create dynamic routes, refer to the official Next.js documentation.

Issues we faced previously

If you had two dynamic routes with the same parameter/slug name, you might be redirected to the wrong page.

How to fix the issue?

We introduced exactMatch and activeUrl props in the MenuItem component to address this issue.

How to add Search in Starter Kit

· One min read

The search functionality is available only in the full-version. If you have started your project using the starter-kit as per our suggestion, please follow the steps below to implement the search functionality in your project.

Step 1: Install cmdk Package

Begin by installing the cmdk package, which is required for the search functionality.

Dynamically Rendering React Icons in Menu Based on API Data

· 4 min read

In this article, we will guide you through the process of using dynamic React Icons in the Menu. This feature is especially useful when you need to render icons dynamically based on data received from an API.

You will have to create a helper component, DynamicIcon, to simplify this process. This component leverages Next.js's dynamic import feature to load icons on demand, thereby optimizing your application's performance.

How to remove Fake DB and use Real API

· 2 min read

In the full-version, we use a fake database (fake-DB) to fetch data via server actions. This setup simplifies the project initialization. However, for real-world applications, you'll need to fetch data from a real API. This guide will walk you through the steps to remove the fake DB and configure your project to use a real API.

Let's get started with the steps:

How to use internationalization in a page

· 2 min read
info

This guide is intended for users who are using the full-version or have implemented internationalization in the starter-kit. If you have not implemented internationalization in your project, follow the steps mentioned in this guide.

We provide internationalization for navigation only. However, there might be times when you need to translate text within a page. Here's how you can achieve that: