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
822 B
JavaScript
35 lines
822 B
JavaScript
import { styled } from '@mui/material/styles';
|
|
import Divider from '@mui/material/Divider';
|
|
import Chip from '@mui/material/Chip';
|
|
|
|
const Root = styled('div')(({ theme }) => ({
|
|
width: '100%',
|
|
...theme.typography.body2,
|
|
color: (theme.vars || theme).palette.text.secondary,
|
|
'& > :not(style) ~ :not(style)': {
|
|
marginTop: theme.spacing(2),
|
|
},
|
|
}));
|
|
|
|
export default function DividerText() {
|
|
const content = (
|
|
<p>{`Lorem ipsum dolor sit amet, consectetur adipiscing elit.`}</p>
|
|
);
|
|
|
|
return (
|
|
<Root>
|
|
{content}
|
|
<Divider>CENTER</Divider>
|
|
{content}
|
|
<Divider textAlign="left">LEFT</Divider>
|
|
{content}
|
|
<Divider textAlign="right">RIGHT</Divider>
|
|
{content}
|
|
<Divider>
|
|
<Chip label="Chip" size="small" />
|
|
</Divider>
|
|
{content}
|
|
</Root>
|
|
);
|
|
}
|