Skip to content

Commit

Permalink
make the description more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 23, 2021
1 parent 8d7576f commit a09a247
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/pages/system/styled/styled.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ This example demonstrates how you can use the `styled` API to create custom comp

{{"demo": "pages/system/styled/UsingOptions.js", "defaultCodeOpen": true }}

If you inspect this element with the browser DevTools, you will notice that the class of the component now ends with the `mythemecomponent-root`, which comes from the `name` and `slot` options that were provided. In addition to this, the `color` and `variant` props are not propagated to the generated `div` element.
If you inspect this element with the browser DevTools in development mode, you will notice that the class of the component now ends with the `mythemecomponent-root`, which comes from the `name` and `slot` options that were provided.
In addition to this, the `color`, `sx`, and `variant` props are not propagated to the generated `div` element.

<img src="/static/images/system/styled-options.png" alt="Developer tools showing the rendered component" width="312" />

Expand Down

0 comments on commit a09a247

Please sign in to comment.