• Blog
  • Documentation
  • Courses
  • Changelog
  • AI Starters
  • UI Kit
  • FAQ
  • Supamode
    New
  • Pricing

Launch your next SaaS in record time with Makerkit, a React SaaS Boilerplate for Next.js and Supabase.

Makerkit is a product of Makerkit Pte Ltd (registered in the Republic of Singapore)Company Registration No: 202407149CFor support or inquiries, please contact us

About
  • FAQ
  • Contact
  • Verify your Discord
  • Consultation
  • Open Source
  • Become an Affiliate
Product
  • Documentation
  • Blog
  • Changelog
  • UI Blocks
  • Figma UI Kit
  • AI SaaS Starters
License
  • Activate License
  • Upgrade License
  • Invite Member
Legal
  • Terms of License

Using the new Shadcn Sidebar in Makerkit

Oct 25, 2024

We have updated the sidebar to use the new Shadcn Sidebar. It's a new design and a more powerful component. In this post, we will learn how to use the new Shadcn Sidebar in Makerkit.

changelog
next

Shadcn UI has recently released a new, powerful Sidebar component. This component is a more modern and polished design, and it allows you to compose your sidebar for a much more powerful experience.

The latest version of Makerkit also uses the new Shadcn Sidebar (with some modifications). In this post, we go through the changes that we made nad how you can leverage an customize the Sidebar behavior.

How does it look?

Well, it does look good. You can judge for yourself:

Multi-level Sidebar

The new sidebar allows you to create a multi-level sidebar, which is a great feature for larger applications.

Normal Sidebar

Here is the normal sidebar, which is the default one.

Dark Mode

The same sidebar, but in dark mode.

Minimized Sidebar

Here is the minimized sidebar:

You can configure the sidebar to be minimized by setting the sidebarCollapsed property to true in the navigation.config.tsx file.

Additionally, you can configure to expand on hover.

What are the changes required in Makerkit?

The only change needed is to create a group for your routes that were previously ungrouped.

To do so, move from the old data structure to the new one:

The old data structure allowed flat routes, while the new one requires routes to be grouped.

tsx
const routes = [
{
label: 'common:routes.dashboard',
path: pathsConfig.app.accountHome.replace('[account]', account),
Icon: <LayoutDashboard className={iconClasses} />,
end: true,
},
{
label: 'Support Tickets',
collapsible: false,
path: `/home/${account}/tickets`,
Icon: <MessageCircle className={iconClasses} />,
}
];

The new data structure requires routes to be grouped, so we need to add a group for the support tickets route.

As you can see, we added a children property to the route object, which is an array of routes that will be grouped under the parent route.

tsx
const routes = [{
label: 'common:routes.application',
children: [
{
label: 'common:routes.dashboard',
path: pathsConfig.app.accountHome.replace('[account]', account),
Icon: <LayoutDashboard className={iconClasses} />,
end: true,
},
{
label: 'Support Tickets',
collapsible: false,
path: `/home/${account}/tickets`,
Icon: <MessageCircle className={iconClasses} />,
},
],
}
]

Settings

You can configure the sidebar settings using environment variables:

To set the Sidebar (user workspace) to be minimized, you can use the following environment variable:

bash
NEXT_PUBLIC_HOME_SIDEBAR_COLLAPSED=true

And to set the Sidebar (team workspace) to be minimized, you can use the following environment variable:

bash
NEXT_PUBLIC_TEAM_SIDEBAR_COLLAPSED=true

Next Steps

In the future, we will allow the ability to fully collapse the sidebar using a button (similar to Stripe).

I hope you'll enjoy using the new Shadcn Sidebar in Makerkit!

Some other posts you might like...
Aug 29, 2025Introducing Custom Dashboards in Supamode: Build Dynamic Analytics InterfacesCreate powerful Supabase dashboard interfaces with Supamode's custom analytics platform. Build personalized Supabase analytics views with drag-and-drop widgets and real-time data visualization.
Aug 21, 2025Makerkit 2.13.0: Components Showcase, Next.js 15.5 & Advanced Data TablesNext.js 15.5 upgrade, Component Showcase, enhanced Table component directly from Supamode to the SaaS Kit
Jul 10, 2025Introducing Supamode, the enterprise-grade Super Admin for SupabaseIntroducing Supamode, a self-hosted enterprise-grade Super Admin for Supabase, turning your database into a powerful, flexible, and secure CMS.
Jun 13, 2025Makerkit 2.11.0: Building Better Authentication ExperiencesDeep dive into the new authentication features: Identity Linking, OTP Sign-In, Smart User Hints, and Legacy Plans support. Learn how these features solve real user problems and reduce support overhead.
Apr 29, 2025Multi-Platform Deployment: Docker, Cloudflare & Self-Hosting Now Available in MakerkitDeploy your Makerkit SaaS projects anywhere with our new first-class support for Docker, Cloudflare, and self-hosting on VPS. Generate configuration files with a single command and follow our comprehensive guides to get up and running quickly.