材料UI COMスタイルのコンポーネントが反応しない
2923 ワード
Quadan Comecei a Application Term ui n n no o o tinha no ' a o da da sua propor merese o o e bilbilidades,pra mim era apenas uma enenada,com seus component iguais em todos os site,criei essa prerrogativa na caabe es a porque n sao como edio seu estilo
Descobri o m ' t todo styled ()は、スタイルのあるコンポーネントをNOSのパーマのコンポーネントを使用します.
ディゴーC
Descobri o m ' t todo styled ()は、スタイルのあるコンポーネントをNOSのパーマのコンポーネントを使用します.
ディゴーC
import React from "react";
import Card from "@material-ui/core/Card";
import Typography from "@material-ui/core/Typography";
import styled from "styled-components";
const CardStyled = styled(Card)`
text-align: center;
width: 200px;
`;
const TextStyled = styled(Typography)`
width: 200px;
height: 100px;
font-size: 24px;
color: blue;
background-color: wheat;
`;
export default function Index() {
return (
<CardStyled>
<TextStyled>Meu Card MUI com texto azul</TextStyled>
</CardStyled>
);
}
}
結果Reference
この問題について(材料UI COMスタイルのコンポーネントが反応しない), 我々は、より多くの情報をここで見つけました https://dev.to/raphaelmelo/material-ui-com-styled-components-no-react-cjgテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol