I'm trying take my UPDATE and DELETE button to the same row.It comes.But there is no space between those two buttons.
<Button className={clsx(classes.button)}
type="submit"
variant="contained">
{'Update'}
</Button>
<Button className={clsx(classes.button)}
type="submit"
variant="contained">
{'Delete'}
</Button>
</div>
How could i fix this?
You need Material UI Box Component for this with display="flex"
and justifyContent="space-between"
. This adds space between elements horizontally.
<Box display="flex" justifyContent="space-between">
<Button className={clsx(classes.button)}
type="submit"
variant="contained">
{'Update'}
</Button>
<Button className={clsx(classes.button)}
type="submit"
variant="contained">
{'Delete'}
</Button>
</Box>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With