项目
在 GitHub 查看 shadcn/ui sidebar ·
salimi-my/shadcn-ui-sidebar
关于
基于 shadcn/ui 构建的适用于 Next.js、美观实用且响应式的可收缩侧边栏。
网站与应用开发可以做什么
- Retractable mini and wide sidebar
- Scrollable sidebar menu
- Sheet menu for mobile
- Grouped menu with labels
实测星标增长
- 24小时
- 0
- 7天
- +3
- 15天
- +1
- 1个月
- +1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文shadcn/ui sidebar · 
A stunning and functional retractable sidebar for Next.js built on top of shadcn/ui complete with desktop and mobile responsiveness.
Features
- Retractable mini and wide sidebar
- Scrollable sidebar menu
- Sheet menu for mobile
- Grouped menu with labels
- Collapsible submenu
- Extracted menu items list
Tech/framework used
- Next.js 14
- Shadcn/ui
- Tailwind CSS
- TypeScript
- Zustand
Installation
Custom registry
If you are using @shadcn/ui 2.0.0 or later, you can install the component directly from the registry.
npx shadcn@latest add https://raw.githubusercontent.com/salimi-my/shadcn-ui-sidebar/refs/heads/master/public/registry/shadcn-sidebar.json
or
npx shadcn@latest add https://shadcn-ui-sidebar.salimi.my/registry/shadcn-sidebar.json
Usage example for Nextjs
//layout.tsx
import AdminPanelLayout from "@/components/admin-panel/admin-panel-layout";
export default async function Layout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return <AdminPanelLayout>{children}</AdminPanelLayout>;
}
//page.tsx
import { ContentLayout } from "@/components/admin-panel/content-layout";
export default function Page() {
return (
<ContentLayout title="Test">
<div>Test</div>
</ContentLayout>
);
}
Starting the project locally
Clone the repository
git clone https://github.com/salimi-my/shadcn-ui-sidebarInstall dependencies
cd shadcn-ui-sidebar npm installRun the development server
npm run dev
Demo
The app is hosted on Vercel. Click here to visit.
Direct demo link: https://shadcn-ui-sidebar.salimi.my
Screenshots
Light mode

Dark mode

Mini sidebar

Sheet menu
探索相关项目
加载中…