shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
75.33k stars 4.72k forks source link

docs(www): mention to add suppressHydrationWarning in the dark mode docs for next #5879

Open ChristianIvicevic opened 6 days ago

ChristianIvicevic commented 6 days ago

Users have repeatedly run into hydration errors because they don't read the next-themes readme and don't pay attention to the shadcn/ui docs and miss that the suppressHydrationWarning prop must be added.

This commit mentions this explicitly and highlights the line in the snippet (as well as fixing the previously wrong highlighting).

vercel[bot] commented 6 days ago

@ChristianIvicevic is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.