Button Group
Please refer to MUI's official docs for more details on component's usage guide and API documentation.
Use variant={'outlined' | 'contained' | 'text'}
prop with <ButtonGroup>
component for button groups.
Use size={'small' | 'medium' | 'large'}
prop with <ButtonGroup>
component for different sizes of button groups.
Use orientation='vertical'
prop with <ButtonGroup>
component for vertical button groups.
ButtonGroup
can also be used to create a split button. The dropdown can change the button action (as in this example), or be used to immediately trigger a related action.
Use color
prop for different colored button-groups.
Toggle Button
Please refer to MUI's official docs for more details on component's usage guide and API documentation.
Manage value
prop with <ToggleButtonGroup>
component with the help of a state and use exclusive
prop with <ToggleButtonGroup>
component for single toggle.
Manage value
prop with the help of a state with array.
Use size={'size' | 'large'}
prop for different sizes.
Use orientation='vertical'
prop for vertical toggle button.
Use if
statement in handle function in onChange
prop.
Exclusive Selection
Multiple Selection
Use styled
hook to customize your toggle button.
Use color
prop for different colored toggle-buttons.