material-ui-nextjs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMaterial UI and Next.js
Material UI 与 Next.js
Agent skill for Next.js + Material UI wiring (SSR/streaming, cache providers, fonts, layers, Link, App Router URL state). SKILL.md is the entry; AGENTS.md is the full guide.
用于Next.js + Material UI集成(SSR/流式渲染、缓存提供器、字体、样式层、Link、App Router URL状态)的Agent技能。SKILL.md为入口文件;AGENTS.md为完整指南。
When to apply
适用场景
- New App Router or Pages Router app using
@mui/material - Styles missing, wrong order, or in instead of
bodyhead - +
next/font/ThemeProvidercreateTheme - Tailwind or CSS Modules + MUI ()
enableCssLayer - +
Buttonor Next.js v16 client boundary errorscomponent={Link} - / URL-driven MUI views and Suspense boundaries
useSearchParams
- 使用的全新App Router或Pages Router应用
@mui/material - 样式缺失、顺序错误,或样式出现在而非
body中head - +
next/font/ThemeProvider组合使用createTheme - Tailwind或CSS Modules + MUI(需启用)
enableCssLayer - +
Button组合使用,或Next.js v16客户端边界错误component={Link} - / URL驱动的MUI视图及Suspense边界
useSearchParams
Sections in AGENTS.md
AGENTS.md中的章节
| Area | Topics |
|---|---|
| App Router | |
| Pages Router | |
| Fonts | |
| CSS variables | |
| CSS layers | |
| Link | Client wrapper, routing guide, examples repo |
| 领域 | 主题 |
|---|---|
| App Router | |
| Pages Router | |
| 字体 | |
| CSS变量 | |
| CSS层 | |
| Link | 客户端包装器、路由指南、示例仓库 |
Full guide
完整指南
Read AGENTS.md for complete steps and doc links.
reference.md lists import paths and provider shape.
阅读AGENTS.md获取完整步骤及文档链接。
reference.md列出了导入路径和提供器结构。