Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
35 lines
916 B
TypeScript
35 lines
916 B
TypeScript
import Button from '@mui/material/Button';
|
|
import Stack from '@mui/material/Stack';
|
|
import SnackbarContent from '@mui/material/SnackbarContent';
|
|
|
|
const action = (
|
|
<Button color="secondary" size="small">
|
|
lorem ipsum dolorem
|
|
</Button>
|
|
);
|
|
|
|
export default function LongTextSnackbar() {
|
|
return (
|
|
<Stack spacing={2} sx={{ maxWidth: 600 }}>
|
|
<SnackbarContent message="I love snacks." action={action} />
|
|
<SnackbarContent
|
|
message={
|
|
'I love candy. I love cookies. I love cupcakes. \
|
|
I love cheesecake. I love chocolate.'
|
|
}
|
|
/>
|
|
<SnackbarContent
|
|
message="I love candy. I love cookies. I love cupcakes."
|
|
action={action}
|
|
/>
|
|
<SnackbarContent
|
|
message={
|
|
'I love candy. I love cookies. I love cupcakes. \
|
|
I love cheesecake. I love chocolate.'
|
|
}
|
|
action={action}
|
|
/>
|
|
</Stack>
|
|
);
|
|
}
|