我是 Material-UI 的新手,我无法弄清楚如何更改以灰色显示的标签的颜色。我想要它在black. 谁能帮我解决这个问题吗?
这是代码:
import React from "react";
import ReactDOM from "react-dom";
import { TextField, Button, Grid } from "@material-ui/core";
class App extends React.Component {
render() {
return (
<Grid container justify={"center"} alignItems={"center"} spacing={1}>
<Grid item>
<TextField
id="outlined-name"
label="Name"
value={"Enter value"}
onChange={() => console.log("I was changed")}
margin="normal"
variant="outlined"
/>
</Grid>
<Grid item>
<Button variant="contained" color="primary">
Submit
</Button>
</Grid>
</Grid>
);
}
}
这是代码:“ https://codesandbox.io/s/fancy-morning-30owz ”
回首忆惘然
杨__羊羊
相关分类