How to change the material ui speeddial button, apparently it uses the Fab default and all you can do is to change the Icon, but I need to add a text as well, for example:
<Fab variant="extended">
<NavigationIcon />
Actions
</Fab>
How to change the material ui speeddial button, apparently it uses the Fab default and all you can do is to change the Icon, but I need to add a text as well, for example:
<Fab variant="extended">
<NavigationIcon />
Actions
</Fab>
lettuce
On
Sorry that this is late, but I recently ran into this problem and found the solution:
SpeedDial comes with FabProps prop to enable you to modify the Fab (Fab docs: https://mui.com/material-ui/api/fab/).
So firstly you should modify the Fab to use variant="extended". Then to add your text, use the icon prop from SpeedDialIcon.
So your component should look something like this:
<SpeedDial
FabProps={{ variant: "extended" }}
icon={
<SpeedDialIcon
icon={
<Box sx={{ display: "flex" }}>
<YourIcon />
<Typography> {/* Your text */} </Typography>
</Box>
/>
}
/>
Copyright © 2021 Jogjafile Inc.
SpeedDialActionfor this purposeOn hover you will see
Please, let me know if it works for you or not )