Dashboard
Learn how to customize and extend your ShipNow dashboard with menus, new pages, and tables.
Overview
The ShipNow dashboard provides a flexible and customizable interface for managing your application. This guide walks you through creating a dashboard page and adding a table, including:
- 📋 Adding and customizing navigation menus
- 🎨 Creating new pages
- 📊 Implementing data tables
Adding Navigation Menus
The dashboard menu is configured in components/dashboard-layout.tsx
. Here's how to add new menu items:
Find the navItems
array in the DashboardSidebar
component:
Add new items to the navItems
array.
Add corresponding translation keys in your locale files:
Creating Dashboard Pages
Create a new page file in the app/[locale]/(dashboard)
directory:
Add corresponding translation keys in your locale files:
The page will be displayed in the dashboard layout like below:
Implementing Data Tables
ShipNow uses Shadcn's DataTable component with Tanstack Table for powerful data table features.
Create a table file with columns configuration.
The table component is a client component, so we put it in a new file.
Add the table component to your page:
The page with table will be displayed in the dashboard layout like below:
Need Help?
- Join our Discord community
- Open an issue on GitHub