Mhmod-Hsn

Payload Advanced Sidebar

by Mhmod-Hsn
Admin customization
v3
^3.84.1

Overview

Summary generated from the README

Customizes the Payload admin sidebar by mapping the groups and collection or global slugs defined in your config to Lucide React icons. It also lets you add custom navigation links and groups that point to external URLs or custom admin views. Configured through a single plugin function in the Payload config, for Payload 3.

Features

  • Assign Lucide icons to sidebar groups by group name
  • Assign icons to individual collections and globals by slug
  • Add custom nav links to existing or new groups
  • Links can target external sites or custom admin routes
  • Optional expand and collapse animations for groups
  • Enable or disable the plugin with a single option

Use cases

  • Make a large admin panel easier to scan with icons for each group
  • Add shortcuts to external tools or custom views in the admin sidebar
  • Organize custom dashboards under a new sidebar group

From the author

A Payload CMS 3.0 plugin to customize the admin sidebar with grouping, custom icons, and hide functionality.

Installation

npm i payload-advanced-sidebar

7

Stars

1

Forks

0

Open Issues

Today

Last Updated

42

Weekly Downloads

v1.3.0

npm Version

55.4 KB

Unpacked Size

1

Dependencies

GitHub stars

7+2 since Sep 7

Show data
GitHub stars by day (UTC)
DateStars
Dec 6, 20267
Dec 5, 20267
Dec 4, 20267
Dec 3, 20267
Dec 2, 20267
Dec 1, 20267
Nov 30, 20267
Nov 29, 20267
Nov 28, 20267
Nov 27, 20267
Nov 26, 20267
Nov 25, 20267
Nov 24, 20267
Nov 23, 20267
Nov 22, 20267
Nov 21, 20267
Nov 20, 20267
Nov 19, 20267
Nov 18, 20267
Nov 17, 20267
Nov 16, 20267
Nov 15, 20267
Nov 14, 20267
Nov 13, 20267
Nov 12, 20267
Nov 11, 20267
Nov 10, 20267
Nov 9, 20267
Nov 8, 20267
Nov 7, 20267
Nov 6, 20267
Nov 5, 20267
Nov 4, 20267
Nov 3, 20267
Nov 2, 20267
Nov 1, 20267
Oct 31, 20267
Oct 30, 20267
Oct 29, 20267
Oct 28, 20267
Oct 27, 20267
Oct 26, 20267
Oct 25, 20267
Oct 24, 20267
Oct 23, 20267
Oct 22, 20267
Oct 21, 20267
Oct 20, 20267
Oct 19, 20267
Oct 18, 20267
Oct 17, 20267
Oct 16, 20267
Oct 15, 20266
Oct 14, 20266
Oct 13, 20266
Oct 12, 20265
Oct 11, 20265
Oct 10, 20265
Oct 9, 20265
Oct 8, 20265
Oct 7, 20265
Oct 6, 20265
Oct 5, 20265
Oct 4, 20265
Oct 3, 20265
Oct 2, 20265
Oct 1, 20265
Sep 30, 20265
Sep 29, 20265
Sep 28, 20265
Sep 27, 20265
Sep 26, 20265
Sep 25, 20265
Sep 24, 20265
Sep 23, 20265
Sep 22, 20265
Sep 21, 20265
Sep 20, 20265
Sep 19, 20265
Sep 18, 20265
Sep 17, 20265
Sep 16, 20265
Sep 15, 20265
Sep 14, 20265
Sep 13, 20265
Sep 12, 20265
Sep 11, 20265
Sep 10, 20265
Sep 9, 20265
Sep 8, 20265
Sep 7, 20265
npm weekly downloads

38+13 since Sep 7

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 202638
Dec 5, 20267
Dec 4, 20267
Dec 3, 20267
Dec 2, 20266
Dec 1, 202618
Nov 30, 202619
Nov 29, 202618
Nov 28, 202615
Nov 27, 202615
Nov 26, 202615
Nov 25, 202616
Nov 24, 20263
Nov 23, 20262
Nov 22, 20264
Nov 21, 20264
Nov 20, 20263
Nov 19, 20264
Nov 18, 202614
Nov 17, 202614
Nov 16, 202616
Nov 15, 202619
Nov 14, 202621
Nov 13, 202622
Nov 12, 202636
Nov 11, 202627
Nov 10, 202627
Nov 9, 202625
Nov 8, 202622
Nov 7, 202625
Nov 6, 202626
Nov 5, 202611
Nov 4, 202610
Nov 3, 202611
Nov 2, 202616
Nov 1, 202616
Oct 31, 202615
Oct 30, 202627
Oct 29, 202627
Oct 28, 202626
Oct 27, 202629
Oct 26, 202634
Oct 25, 202635
Oct 24, 202633
Oct 23, 202619
Oct 22, 202643
Oct 21, 202662
Oct 20, 202660
Oct 19, 202650
Oct 18, 202647
Oct 17, 202646
Oct 16, 202646
Oct 15, 202623
Oct 14, 20264
Oct 13, 20262
Oct 12, 20262
Oct 11, 20265
Oct 10, 20264
Oct 9, 20264
Oct 8, 202610
Oct 7, 202610
Oct 6, 202612
Oct 5, 202619
Oct 4, 202620
Oct 3, 202629
Oct 2, 202631
Oct 1, 202624
Sep 30, 202624
Sep 29, 202622
Sep 28, 202615
Sep 27, 202612
Sep 26, 20267
Sep 25, 20265
Sep 24, 202612
Sep 23, 202612
Sep 22, 202623
Sep 21, 202623
Sep 20, 202624
Sep 19, 202624
Sep 18, 202628
Sep 17, 202626
Sep 16, 202627
Sep 15, 202616
Sep 14, 202621
Sep 13, 202631
Sep 12, 202629
Sep 11, 202625
Sep 10, 202623
Sep 9, 202623
Sep 8, 202624
Sep 7, 202625

Each point is npm's rolling 7-day download count.

Health Score

70/100Good

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1260559415-root.svg)](https://payloaddirectory.dev/plugins/1260559415-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1260559415-root"><img src="https://payloaddirectory.dev/badge/1260559415-root.svg" alt="Payload Directory"></a>
Updated Dec 5, 2026Created Jun 5, 2026Published Dec 5, 2026

README

Payload Advanced Sidebar

A Payload CMS 3.0 plugin that enhances your admin sidebar navigation. It allows you to assign custom icons to your collection/global groups as well as individual items, making your admin interface much more visually appealing and organized.

Sidebar Preview

Features

  • 📁 Group Icons: Assign custom icons to the sidebar groups you've defined in your Payload config.
  • 🔗 Custom Nav Links: Add fully custom items and custom groups that point to external sites or custom Payload views.
  • 🎨 Item Icons: Assign custom icons to individual collections and globals.
  • ⚡️ Lucide React Integration: Uses Lucide React icons by default. Just pass the exact string name of the icon (e.g., 'ShoppingCart').
  • ⚙️ Simple Configuration: Seamlessly integrates with your existing Payload config without needing to rewrite your navigation structure.

Installation

npm install payload-advanced-sidebar
# or
yarn add payload-advanced-sidebar
# or
pnpm add payload-advanced-sidebar

Usage

This plugin relies on the standard admin.group property you define on your collections and globals in Payload. You simply map those group names or item slugs to an icon!

Add the plugin to your payload.config.ts:

import { buildConfig } from 'payload/config'
import { advancedSidebarPlugin } from 'payload-advanced-sidebar'

export default buildConfig({
  collections: [
    {
      slug: 'posts',
      admin: { group: 'Content' }, // The group name used below
      fields: [],
    },
    {
      slug: 'customers',
      admin: { group: 'E-commerce' }, // The group name used below
      fields: [],
    }
  ],
  plugins: [
    advancedSidebarPlugin({
      enabled: true, // Optional: defaults to true
      // 1. Configure icons for your navigation groups
      groups: {
        'E-commerce': {
          icon: 'ShoppingCart', // String matching a Lucide React icon
        },
        'Content': {
          icon: 'LayoutDashboard',
        },
      },
      // 2. Configure icons for specific items (by slug)
      items: {
        'posts': {
          icon: 'Book',
        },
        'customers': {
          icon: 'Users',
        },
      },
      // 3. Add custom navigation links or groups
      navLinks: [
        {
          label: 'Custom Dashboard',
          path: '/custom-dashboard', // relative to adminRoute
          icon: 'Activity',
          group: 'Analytics', // Creates a new 'Analytics' group
        },
        {
          label: 'External Link',
          path: 'https://payloadcms.com',
          icon: 'ExternalLink',
          group: 'E-commerce', // Adds to existing 'E-commerce' group
        },
      ],
    }),
  ],
})

Plugin Options

OptionTypeDefaultDescription
enabledbooleantrueSet to false to easily disable the plugin entirely.
animationsbooleantrueSet to false to disable smooth expanding/collapsing animations for sidebar groups.
groupsRecord<string, { icon?: string }>{}Map your group names (e.g., 'E-commerce') to specific Lucide React icon names.
itemsRecord<string, { icon?: string }>{}Map your collection/global slugs (e.g., 'posts') to specific Lucide React icon names.
navLinksCustomNavLink[][]Array of custom navigation links, allowing you to add external URLs or internal custom routes to existing or new groups.

Development

To develop or contribute to this plugin:

  1. Clone the repository
  2. Run pnpm install
  3. Run pnpm dev to start the development server
  4. Edit the files in the src directory

License

MIT

Similar plugins