diff --git a/docs/data/joy/getting-started/tutorial/tutorial.md b/docs/data/joy/getting-started/tutorial/tutorial.md index 1cf167cb0a5181..3abe017ddd89b9 100644 --- a/docs/data/joy/getting-started/tutorial/tutorial.md +++ b/docs/data/joy/getting-started/tutorial/tutorial.md @@ -32,7 +32,6 @@ The [Sheet](/joy-ui/react-sheet/) component is a `
` container that supports Import Sheet and add it to your app as shown below. (If you're using Create React App, for example, all of this code should go in `App.js`.) -Notice that Joy UI components must be nested within ``: ```jsx import * as React from 'react'; diff --git a/docs/data/joy/getting-started/usage/usage.md b/docs/data/joy/getting-started/usage/usage.md index 3e7f35a81d9c9a..6117e41391e36e 100644 --- a/docs/data/joy/getting-started/usage/usage.md +++ b/docs/data/joy/getting-started/usage/usage.md @@ -8,15 +8,10 @@ The following code snippet demonstrates a simple app that uses the Joy UI [Butto ```jsx import * as React from 'react'; -import { CssVarsProvider } from '@mui/joy/styles'; import Button from '@mui/joy/Button'; export default function MyApp() { - return ( - - - - ); + return ; } ``` @@ -31,10 +26,6 @@ In the Quickstart example above, you can see that the Button component is nested This provider unlocks a whole host of customization options powered by CSS variables. See [Using CSS variables](/joy-ui/customization/using-css-variables/) for more details. -:::error -`` is _required_ when working with Joy UI components. -::: - ## Globals Since Joy UI components are built to function in isolation, they don't require any kind of globally scoped styles. diff --git a/docs/data/joy/guides/using-icon-libraries/using-icon-libraries.md b/docs/data/joy/guides/using-icon-libraries/using-icon-libraries.md index bc445510a62954..599d043847f3e3 100644 --- a/docs/data/joy/guides/using-icon-libraries/using-icon-libraries.md +++ b/docs/data/joy/guides/using-icon-libraries/using-icon-libraries.md @@ -78,6 +78,10 @@ If you use TypeScript, you will need to update the TSConfig. ::: +:::error +`` is _required_ when working with Material UI's icons inside an app using Joy UI, so that the components can correctly adjust the icons based on the usage. +::: + ### Usage By default, Joy UI components are able to control an icon's color, font size, and margins when its size or variant changes.