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
28 lines
783 B
JavaScript
28 lines
783 B
JavaScript
import * as React from 'react';
|
|
import { ClassNames } from '@emotion/react';
|
|
import Button from '@mui/material/Button';
|
|
|
|
export default function EmotionCompat() {
|
|
return (
|
|
<ClassNames>
|
|
{({ css }) => (
|
|
<React.Fragment>
|
|
<Button color="primary" classes={{ root: css({ color: 'pink' }) }}>
|
|
This text should be pink
|
|
</Button>
|
|
<Button
|
|
color="primary"
|
|
className={css({ color: 'red' })}
|
|
classes={{ root: css({ color: 'pink' }) }}
|
|
>
|
|
This text should be red
|
|
</Button>
|
|
<Button color="primary" classes={{ text: css({ color: 'pink' }) }}>
|
|
This text should be pink
|
|
</Button>
|
|
</React.Fragment>
|
|
)}
|
|
</ClassNames>
|
|
);
|
|
}
|