Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs][Joy] Add documentation for Joy Stack component #35373

Merged
merged 22 commits into from Dec 26, 2022

Conversation

hbjORbj
Copy link
Member

@hbjORbj hbjORbj commented Dec 6, 2022

@hbjORbj hbjORbj self-assigned this Dec 6, 2022
@hbjORbj hbjORbj added docs Improvements or additions to the documentation component: Stack The React component. package: joy-ui Specific to @mui/joy labels Dec 6, 2022
@mui-bot
Copy link

mui-bot commented Dec 6, 2022

Messages
📖 Netlify deploy preview: https://deploy-preview-35373--material-ui.netlify.app/

No bundle size changes

Generated by 🚫 dangerJS against 3fa14c6

@siriwatknp
Copy link
Member

siriwatknp commented Dec 15, 2022

From #35471, @hbjORbj can you add one more customization demo to show the truncated text example?

using <Stack sx={{ '& > *': { minWidth: 0 } }}> #35471 (comment).

@hbjORbj
Copy link
Member Author

hbjORbj commented Dec 22, 2022

@siriwatknp I've added the following example. Let me know.

      ....
      <Item
        sx={{
          my: 1,
          mx: 'auto',
          p: 2,
        }}
      >
        <Stack spacing={2} direction="row" alignItems="center">
          <Stack>
            <Avatar>W</Avatar>
          </Stack>
          <Stack sx={{ minWidth: 0 }}>
            <Typography noWrap>{message}</Typography>
          </Stack>
        </Stack>
      </Item>

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hbjORbj One last comment, please fix it before merging.

Co-authored-by: Siriwat K <siriwatkunaporn@gmail.com>
Signed-off-by: Marija Najdova <mnajdova@gmail.com>
Signed-off-by: Marija Najdova <mnajdova@gmail.com>
@mnajdova mnajdova merged commit 779a524 into mui:master Dec 26, 2022
@CLEckhardt
Copy link

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Stack The React component. docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add zeroMinWidth prop to Stack
6 participants