shadcn ui sidebar
1.0.0
Next.js構建的令人驚嘆且功能性的可伸縮側欄。 JS在ShadCN/UI之上,配有台式機和移動響應能力。
如果使用 @shadcn/ui 2.0.0或更高版本,則可以直接從註冊表中安裝組件。
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 //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 >
) ;
} 克隆存儲庫
git clone https://github.com/salimi-my/shadcn-ui-sidebar安裝依賴項
cd shadcn-ui-sidebar
npm install運行開發服務器
npm run dev該應用程序託管在Vercel上。單擊此處訪問。
直接演示鏈接: https://shadcn-ui-sidebar.salimi.my



