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

scope: toggle buttonChanges related to the toggle button.type: new featureExpand the scope of the product to solve a new problem.waiting 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