Skip to content

[docs] Add Next.js App Router guide for custom classnames #45852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 10, 2025

Conversation

siriwatknp
Copy link
Member

closes #45128

@siriwatknp siriwatknp added docs Improvements or additions to the documentation nextjs labels Apr 9, 2025
@mui-bot
Copy link

mui-bot commented Apr 9, 2025

@@ -124,16 +124,36 @@ Always create an initializer file to hoist the `ClassNameGenerator` call to the

```js
// create a new file called `MuiClassNameSetup.js` at the root or src folder.
'use client';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed in non-RSC frameworks, but I'm not sure if adding a comment about it is worth it.

Copy link
Contributor

@mapache-salvaje mapache-salvaje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tentatively approving so it won't be a blocker once the comments are resolved! 👍

siriwatknp and others added 2 commits April 10, 2025 09:32
Co-authored-by: Aarón García Hervás <[email protected]>
Co-authored-by: mapache-salvaje <[email protected]>
Signed-off-by: Siriwat K <[email protected]>
@siriwatknp siriwatknp enabled auto-merge (squash) April 10, 2025 02:32
@siriwatknp siriwatknp merged commit fae30f9 into mui:master Apr 10, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation nextjs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ClassName generator not working with Next.js App router
4 participants