Skip to content

Commit

Permalink
sync with reality
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 23, 2021
1 parent a09a247 commit d1fb83c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified docs/public/static/images/system/styled-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions docs/src/pages/system/styled/styled.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ 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 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.
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.

<img src="/static/images/system/styled-options.png" alt="browser DevTools showing the rendered component" width="327" />

<img src="/static/images/system/styled-options.png" alt="Developer tools showing the rendered component" width="312" />
In addition to this, the `color`, `sx`, and `variant` props are not propagated to the generated `div` element.

## Removing features

Expand Down

0 comments on commit d1fb83c

Please sign in to comment.