- Item 1
- Item 2
- Item 3
diff --git a/docs/data/joy/components/stack/DirectionStack.tsx b/docs/data/joy/components/stack/DirectionStack.tsx
index e4db4711d8c9a3..32bc369722d1dd 100644
--- a/docs/data/joy/components/stack/DirectionStack.tsx
+++ b/docs/data/joy/components/stack/DirectionStack.tsx
@@ -4,19 +4,20 @@ import Stack from '@mui/joy/Stack';
import { styled } from '@mui/joy/styles';
const Item = styled(Sheet)(({ theme }) => ({
- backgroundColor:
- theme.palette.mode === 'dark' ? theme.palette.background.level1 : '#fff',
...theme.typography['body-sm'],
- padding: theme.spacing(1),
textAlign: 'center',
- borderRadius: 4,
+ fontWeight: theme.fontWeight.md,
color: theme.vars.palette.text.secondary,
+ border: '1px solid',
+ borderColor: theme.palette.divider,
+ padding: theme.spacing(1),
+ borderRadius: theme.radius.md,
}));
export default function DirectionStack() {
return (
-
+
- Item 1
- Item 2
- Item 3
diff --git a/docs/data/joy/components/stack/DirectionStack.tsx.preview b/docs/data/joy/components/stack/DirectionStack.tsx.preview
index 0b432fbd09105e..a4ee8ef47dbbc8 100644
--- a/docs/data/joy/components/stack/DirectionStack.tsx.preview
+++ b/docs/data/joy/components/stack/DirectionStack.tsx.preview
@@ -1,4 +1,4 @@
-
+
- Item 1
- Item 2
- Item 3
diff --git a/docs/data/joy/components/stack/DividerStack.js b/docs/data/joy/components/stack/DividerStack.js
index 3451afa7ca399f..c43b3586df70d3 100644
--- a/docs/data/joy/components/stack/DividerStack.js
+++ b/docs/data/joy/components/stack/DividerStack.js
@@ -6,13 +6,14 @@ 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['body-sm'],
- padding: theme.spacing(1),
textAlign: 'center',
- borderRadius: 4,
+ fontWeight: theme.fontWeight.md,
color: theme.vars.palette.text.secondary,
+ border: '1px solid',
+ borderColor: theme.palette.divider,
+ padding: theme.spacing(1),
+ borderRadius: theme.radius.md,
}));
export default function DividerStack() {
diff --git a/docs/data/joy/components/stack/DividerStack.tsx b/docs/data/joy/components/stack/DividerStack.tsx
index 3451afa7ca399f..c43b3586df70d3 100644
--- a/docs/data/joy/components/stack/DividerStack.tsx
+++ b/docs/data/joy/components/stack/DividerStack.tsx
@@ -6,13 +6,14 @@ 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['body-sm'],
- padding: theme.spacing(1),
textAlign: 'center',
- borderRadius: 4,
+ fontWeight: theme.fontWeight.md,
color: theme.vars.palette.text.secondary,
+ border: '1px solid',
+ borderColor: theme.palette.divider,
+ padding: theme.spacing(1),
+ borderRadius: theme.radius.md,
}));
export default function DividerStack() {
diff --git a/docs/data/joy/components/stack/FlexboxGapStack.js b/docs/data/joy/components/stack/FlexboxGapStack.js
index 33d144ca45a120..8a272533bfc5dd 100644
--- a/docs/data/joy/components/stack/FlexboxGapStack.js
+++ b/docs/data/joy/components/stack/FlexboxGapStack.js
@@ -5,20 +5,21 @@ import Stack from '@mui/joy/Stack';
import { styled } from '@mui/joy/styles';
const Item = styled(Sheet)(({ theme }) => ({
- backgroundColor:
- theme.palette.mode === 'dark' ? theme.palette.background.level1 : '#fff',
...theme.typography['body-sm'],
- padding: theme.spacing(1),
textAlign: 'center',
- borderRadius: 4,
+ fontWeight: theme.fontWeight.md,
color: theme.vars.palette.text.secondary,
+ border: '1px solid',
+ borderColor: theme.palette.divider,
+ padding: theme.spacing(1),
+ borderRadius: theme.radius.md,
flexGrow: 1,
}));
export default function FlexboxGapStack() {
return (
-
+
- Item 1
- Item 2
- Long content
diff --git a/docs/data/joy/components/stack/FlexboxGapStack.tsx b/docs/data/joy/components/stack/FlexboxGapStack.tsx
index 33d144ca45a120..8a272533bfc5dd 100644
--- a/docs/data/joy/components/stack/FlexboxGapStack.tsx
+++ b/docs/data/joy/components/stack/FlexboxGapStack.tsx
@@ -5,20 +5,21 @@ import Stack from '@mui/joy/Stack';
import { styled } from '@mui/joy/styles';
const Item = styled(Sheet)(({ theme }) => ({
- backgroundColor:
- theme.palette.mode === 'dark' ? theme.palette.background.level1 : '#fff',
...theme.typography['body-sm'],
- padding: theme.spacing(1),
textAlign: 'center',
- borderRadius: 4,
+ fontWeight: theme.fontWeight.md,
color: theme.vars.palette.text.secondary,
+ border: '1px solid',
+ borderColor: theme.palette.divider,
+ padding: theme.spacing(1),
+ borderRadius: theme.radius.md,
flexGrow: 1,
}));
export default function FlexboxGapStack() {
return (
-
+
- Item 1
- Item 2
- Long content
diff --git a/docs/data/joy/components/stack/FlexboxGapStack.tsx.preview b/docs/data/joy/components/stack/FlexboxGapStack.tsx.preview
index 3fc7882b161bce..5ef6dfa6a30719 100644
--- a/docs/data/joy/components/stack/FlexboxGapStack.tsx.preview
+++ b/docs/data/joy/components/stack/FlexboxGapStack.tsx.preview
@@ -1,4 +1,4 @@
-
+
- Item 1
- Item 2
- Long content
diff --git a/docs/data/joy/components/stack/InteractiveStack.js b/docs/data/joy/components/stack/InteractiveStack.js
index c4b0904a9b2a82..0ec70fd492dc6c 100644
--- a/docs/data/joy/components/stack/InteractiveStack.js
+++ b/docs/data/joy/components/stack/InteractiveStack.js
@@ -11,13 +11,13 @@ import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import BrandingProvider from 'docs/src/BrandingProvider';
const Item = styled(Sheet)(({ theme }) => ({
- backgroundColor:
- theme.palette.mode === 'dark' ? theme.palette.background.level1 : '#fff',
...theme.typography['body-sm'],
- padding: theme.spacing(1),
textAlign: 'center',
- borderRadius: 4,
+ fontWeight: theme.fontWeight.md,
color: theme.vars.palette.text.secondary,
+ border: '1px solid',
+ borderColor: theme.palette.divider,
+ borderRadius: theme.radius.md,
}));
export default function InteractiveStack() {
@@ -36,13 +36,13 @@ export default function InteractiveStack() {
`;
return (
-
+
{[0, 1, 2].map((value) => (
-
))}
-
+ ({
+ p: 2,
+ borderRadius: 'md',
+ bgcolor: theme.palette.neutral[50],
+ borderColor: theme.palette.neutral[100],
+ [theme.getColorSchemeSelector('dark')]: {
+ borderColor: theme.palette.neutral[800],
+ backgroundColor: theme.palette.neutral[900],
+ },
+ })}
+ >
- direction
+ direction
- alignItems
+ alignItems
- justifyContent
+ justifyContent
- spacing
+ spacing
({
- backgroundColor:
- theme.palette.mode === 'dark' ? theme.palette.background.level1 : '#fff',
...theme.typography['body-sm'],
- padding: theme.spacing(1),
textAlign: 'center',
- borderRadius: 4,
+ fontWeight: theme.fontWeight.md,
color: theme.vars.palette.text.secondary,
+ border: '1px solid',
+ borderColor: theme.palette.divider,
+ borderRadius: theme.radius.md,
}));
export default function InteractiveStack() {
@@ -36,13 +36,13 @@ export default function InteractiveStack() {
`;
return (
-
+
{[0, 1, 2].map((value) => (
-
))}
-
+ ({
+ p: 2,
+ borderRadius: 'md',
+ bgcolor: theme.palette.neutral[50],
+ borderColor: theme.palette.neutral[100],
+ [theme.getColorSchemeSelector('dark')]: {
+ borderColor: theme.palette.neutral[800],
+ backgroundColor: theme.palette.neutral[900],
+ },
+ })}
+ >
- direction
+ direction
- alignItems
+ alignItems
- justifyContent
+ justifyContent
- spacing
+ spacing
({
- backgroundColor:
- theme.palette.mode === 'dark' ? theme.palette.background.level1 : '#fff',
...theme.typography['body-sm'],
- padding: theme.spacing(1),
textAlign: 'center',
- borderRadius: 4,
+ fontWeight: theme.fontWeight.md,
color: theme.vars.palette.text.secondary,
+ border: '1px solid',
+ borderColor: theme.palette.divider,
+ padding: theme.spacing(1),
+ borderRadius: theme.radius.md,
}));
export default function ResponsiveStack() {
diff --git a/docs/data/joy/components/stack/ResponsiveStack.tsx b/docs/data/joy/components/stack/ResponsiveStack.tsx
index acc2bb6c6ab7e9..08683d607a8f11 100644
--- a/docs/data/joy/components/stack/ResponsiveStack.tsx
+++ b/docs/data/joy/components/stack/ResponsiveStack.tsx
@@ -4,13 +4,14 @@ import Stack from '@mui/joy/Stack';
import { styled } from '@mui/joy/styles';
const Item = styled(Sheet)(({ theme }) => ({
- backgroundColor:
- theme.palette.mode === 'dark' ? theme.palette.background.level1 : '#fff',
...theme.typography['body-sm'],
- padding: theme.spacing(1),
textAlign: 'center',
- borderRadius: 4,
+ fontWeight: theme.fontWeight.md,
color: theme.vars.palette.text.secondary,
+ border: '1px solid',
+ borderColor: theme.palette.divider,
+ padding: theme.spacing(1),
+ borderRadius: theme.radius.md,
}));
export default function ResponsiveStack() {
diff --git a/docs/data/joy/components/stack/ZeroWidthStack.js b/docs/data/joy/components/stack/ZeroWidthStack.js
index fe6430db37ecac..0ebb724caeb29d 100644
--- a/docs/data/joy/components/stack/ZeroWidthStack.js
+++ b/docs/data/joy/components/stack/ZeroWidthStack.js
@@ -22,6 +22,7 @@ export default function ZeroWidthStack() {
return (
-
-
-
-
```
-{{"demo": "ZeroWidthStack.js", "bg": true}}
+{{"demo": "ZeroWidthStack.js"}}
## Anatomy