Please help me solve this problem How to fill in a row of dots in the blank space between food name and price in reactjs? (picture example) I'm using Material UI library for my project, enter image description here
I'm using the Material UI library for my project
<Grid container spacing={2}> {coffeeMenu.map((item, index) => ( <Grid item xs={6} key={index}> <Link underline='none' sx={{ display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', px: 5, fontWeight: 'bold', color: '#000', '&:hover': { color: '#D8AE78', cursor: 'pointer', }, }} > <Typography>{item.name}</Typography> <Typography>{item.price}đ</Typography> </Link> </Grid> ))} </Grid>
You can add a div with a dotted border between the food name and price. I'd need to see your code to show you exactly how to do it, but something like this would work: