Skip to content

[material-ui][ToggleButtonGroup] Add functionality to keep buttons separate #45569

@Mikilll94

Description

@Mikilll94

Summary

Currently it's not possible to easily separate buttons in ToggleButtonGroup component.

If you try to do that i.e. by using CSS gap property, then as you can see left borders are missing

Image

https://stackblitz.com/edit/react-kkov5aav?file=Demo.tsx

Examples

No response

Motivation

In Joy UI you can set spacing for buttons in ToggleButtonGroup. Material should also have this feature:

Image

Search keywords: ToggleButtonGroup, separate

Metadata

Metadata

Assignees

Labels

component: toggle buttonThis is the name of the generic UI component, not the React module!new featureNew feature or requestpackage: material-uiSpecific to @mui/materialwaiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions