-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Sync <Stack> between projects (#36785)
- Loading branch information
1 parent
a0c1b25
commit 0046053
Showing
69 changed files
with
594 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
import * as React from 'react'; | ||
import Sheet from '@mui/joy/Sheet'; | ||
import Stack from '@mui/joy/Stack'; | ||
import Box from '@mui/joy/Box'; | ||
import { styled } from '@mui/joy/styles'; | ||
|
||
const Item = styled(Sheet)(({ theme }) => ({ | ||
backgroundColor: | ||
theme.palette.mode === 'dark' ? theme.palette.background.level1 : '#fff', | ||
...theme.typography.body2, | ||
padding: theme.spacing(1), | ||
textAlign: 'center', | ||
color: theme.vars.palette.text.tertiary, | ||
borderRadius: 4, | ||
color: theme.vars.palette.text.secondary, | ||
})); | ||
|
||
export default function BasicStack() { | ||
return ( | ||
<Stack spacing={2} sx={{ width: '100%' }}> | ||
<Item>Item 1</Item> | ||
<Item>Item 2</Item> | ||
<Item>Item 3</Item> | ||
</Stack> | ||
<Box sx={{ width: '100%' }}> | ||
<Stack spacing={2}> | ||
<Item>Item 1</Item> | ||
<Item>Item 2</Item> | ||
<Item>Item 3</Item> | ||
</Stack> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
import * as React from 'react'; | ||
import Sheet from '@mui/joy/Sheet'; | ||
import Stack from '@mui/joy/Stack'; | ||
import Box from '@mui/joy/Box'; | ||
import { styled } from '@mui/joy/styles'; | ||
|
||
const Item = styled(Sheet)(({ theme }) => ({ | ||
backgroundColor: | ||
theme.palette.mode === 'dark' ? theme.palette.background.level1 : '#fff', | ||
...theme.typography.body2, | ||
padding: theme.spacing(1), | ||
textAlign: 'center', | ||
color: theme.vars.palette.text.tertiary, | ||
borderRadius: 4, | ||
color: theme.vars.palette.text.secondary, | ||
})); | ||
|
||
export default function BasicStack() { | ||
return ( | ||
<Stack spacing={2} sx={{ width: '100%' }}> | ||
<Item>Item 1</Item> | ||
<Item>Item 2</Item> | ||
<Item>Item 3</Item> | ||
</Stack> | ||
<Box sx={{ width: '100%' }}> | ||
<Stack spacing={2}> | ||
<Item>Item 1</Item> | ||
<Item>Item 2</Item> | ||
<Item>Item 3</Item> | ||
</Stack> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<Item>Item 1</Item> | ||
<Item>Item 2</Item> | ||
<Item>Item 3</Item> | ||
<Stack spacing={2}> | ||
<Item>Item 1</Item> | ||
<Item>Item 2</Item> | ||
<Item>Item 3</Item> | ||
</Stack> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<Item>Item 1</Item> | ||
<Item>Item 2</Item> | ||
<Item>Item 3</Item> | ||
<Stack direction="row" spacing={2}> | ||
<Item>Item 1</Item> | ||
<Item>Item 2</Item> | ||
<Item>Item 3</Item> | ||
</Stack> |
Oops, something went wrong.