Skip to content

Commit

Permalink
prettier & formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Nov 6, 2020
1 parent b824976 commit 6a4630b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/system/basics/Demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ export default function Demo() {
>
<Img
sx={{ width: '100%', maxWidth: { xs: 350, md: 250 } }}
alt=""
alt="The house from the offer."
src="https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=400&dpr=2"
/>
<Box
sx={{
display: 'flex',
flexDirection: 'column',
alignItems: { xs: 'center', md: 'flex-start' },
alignItems: { xs: 'center', md: 'flex-start' },
m: 3,
minWidth: { md: 350 },
}}
Expand Down
5 changes: 3 additions & 2 deletions docs/src/pages/system/basics/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ There are several reasons why you may need the system offered by Material-UI. He

### 1. Building consistent UIs is hard

This is especially true when there is more than one person building the application. There has to be some synchronization as to what the design tokens are and how they are used, what parts of the theme structure should be used with what CSS properties, etc.
This is especially true when there is more than one person building the application. There has to be some synchronization as to what the design tokens are and how they are used, what parts of the theme structure should be used with what CSS properties, etc.

### 2. Switching context

Expand Down Expand Up @@ -52,7 +52,7 @@ export default function Demo() {
- <Header>
+ <Box component="h4" sx={{ color: 'grey' }}>
123 Main St, Pheonix AZ
- </Header>
- </Header>
+ </Box>
- <Content>
+ <Box component="p" sx={{
Expand Down Expand Up @@ -96,6 +96,7 @@ yarn add @material-ui/system
## The `sx` prop

We mentioned that you can use the `sx` prop on all MUI components. In addition to this, you may add the prop on your custom components too by using the `experimentalStyled` utility from `@material-ui/core/styles`.

```jsx
import { experimentalStyled as styled } from '@material-ui/core/styles';

Expand Down

0 comments on commit 6a4630b

Please sign in to comment.