I want to change the font family of the label in Mui component TextField but the sx properly isnt working for font family, it works for changing the width. I tried the rows property for height, but that didnt work either.
<TextField
className="contactTextField"
label="NAME"
variant="outlined"
sx={{
fontFamily: ["Taviraj", "serif"].join(),
width: "80%",
}}
/>