Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | import { Button } from '@mui/material';
export default function MaterialBasic() {
return (
<>
<Button variant="text">Text</Button>
<Button variant="contained">Contained</Button>
<Button variant="outlined">Outlined</Button>
</>
);
}
// import { Button } from '@mui/material';
// export default function MaterialBasic() {
// return (
// <>
// <Button variant="text" color="secondary">Text</Button>
// <Button variant="contained" color="secondary">Contained</Button>
// <Button variant="outlined" color="secondary">Outlined</Button>
// </>
// );
// }
// Code 6-1-3
// /** @jsxImportSource @emotion/react */
// import { css } from '@emotion/react';
// import { Button } from '@mui/material';
// export default function MaterialBasic() {
// // 텍스트 대/소문자 변환을 비활성화하다.
// const font = css`
// text-transform: none;
// `;
// return (
// <>
// <Button variant="text" css={font}>Text</Button>
// <Button variant="contained" css={font}>Contained</Button>
// <Button variant="outlined" css={font}>Outlined</Button>
// </>
// );
// } |