Skip to main content

material-ui-nextjs

Integrates Material UI with Next.js App and Pages routers using @mui/material-nextjs, Emotion cache providers, next/font, CSS layers with Tailwind/CSS Modules, Link component prop patterns, CSS theme variables SSR notes, and App Router useSearchParams + Suspense. Use when setting up or debugging MUI in a Next.js app.

来源信息

仓库
mui/material-ui-docs
最近来源活动
2026年6月29日 09:31
检测到的 SKILL.md 语言
英语
星标
337
分支
65

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
5 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
material-ui-nextjs
description
Integrates Material UI with Next.js App and Pages routers using @mui/material-nextjs, Emotion cache providers, next/font, CSS layers with Tailwind/CSS Modules, Link component prop patterns, CSS theme variables SSR notes, and App Router useSearchParams + Suspense. Use when setting up or debugging MUI in a Next.js app.
license
MIT
metadata
{"author":"mui","version":"1.0.0"}
# Material UI and 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. ## When to apply - New App Router or Pages Router app using `@mui/material` - Styles missing, wrong order, or in `body` instead of `head` - `next/font` + `ThemeProvider` / `createTheme` - Tailwind or CSS Modules + MUI (`enableCssLayer`) - `Button` + `component={Link}` or Next.js v16 client boundary errors - `useSearchParams` / URL-driven MUI views and Suspense boundaries ## Sections in AGENTS.md | Area | Topics | | :------------ | :-------------------------------------------------------------------------------------- | | App Router | `AppRouterCacheProvider`, `@emotion/cache`, `options`, `useSearchParams` + `<Suspense>` | | Pages Router | `_document`, `_app`, `DocumentHeadTags`, `AppCacheProvider` | | Fonts | `'use client'` theme, `next/font`, CSS variables on `html` | | CSS variables | `cssVariables`, SSR flicker docs | | CSS layers | `enableCssLayer`, Tailwind / other CSS | | Link | Client wrapper, routing guide, examples repo | ## Full guide Read [AGENTS.md](./AGENTS.md) for complete steps and doc links. [reference.md](./reference.md) lists import paths and provider shape.
在 GitHub 查看