MUI Buttons - Example & Tutorial
Please refer to MUI's official docs for more details on component's usage guide and API documentation.
Use startIcon | endIcon prop with <Button> component to add an icon inside a button.
Use an icon component inside <IconButton> component. For different colors, use color prop with <IconButton> component.
Use size={'small' | 'medium' | 'large'} prop with <Button> component for different sized buttons. To use icon buttons, you need to use size={small | large} prop with <IconButton> component or you can also use fontSize prop with the icons.
Use color prop with <Button> component for different colored buttons.
Use <CustomIconButton> component to use our custom icon button. You can use all the props of the <Button> component and additionally, we have added default color.
Sizes
Colors
Use color prop with <Fab> component for different colored Floating Action
Button and variant='extended' prop for extended (not round) Floating Action Button.
Circular Variant
Extended Variant
Use size={'small' | 'medium' | 'large'} prop for different sizes of Floating Action Buttons.