Skip to content

Commit

Permalink
Clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah committed Sep 12, 2024
1 parent 570d12c commit c00e42d
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,7 @@ You can also manually update your components as shown in the snippet below:
+<Button sx={{ mr: 2 }}>
```

The `sx` prop also supports callbacks with access to the theme:

```diff
-<Typography color={(theme) => theme.palette.primary.main}>
+<Typography sx={{ color: (theme) => theme.palette.primary.main }}>
```
The `sx` prop supports all features of system props: callbacks with access to the theme, responsive values, direct access to theme values, shorthands, etc.

### Theme component variants

Expand Down

0 comments on commit c00e42d

Please sign in to comment.