Draft
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
Co-authored-by: YieldRay <24633623+YieldRay@users.noreply.github.com>
Co-authored-by: YieldRay <24633623+YieldRay@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add split button component with configurations
Implement split button component per M3 spec
Dec 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds split button component following Material Design 3 specifications. Split buttons combine a primary action with a menu of related actions.
Implementation
Usage
Screenshots
All variants

All sizes

With icon

Original prompt
This section details on the original issue you should resolve
<issue_title>Split buttons</issue_title>
<issue_description># Split buttons
Split buttons open a menu to give people more options related to an action
Specs: https://m3.material.io/components/split-button/specs
Types
Configurations
Tokens & specs
Use the table's menu to select a token set. Split button token sets are organized by size. Learn about design tokens
Anatomy
The leading button in split buttons can have an icon, label text, or both. The trailing button should always have a menu icon.
Color
Color values are implemented through design tokens. Design tokens are the building blocks of all UI elements. The same tokens are used in designs, tools, and code. More on tokens.
Split buttons use the same color schemes as standard buttons. More on buttons. However, unlike toggle buttons, the split button color doesn’t change when selected—only a state layer is applied.
Split buttons use the same colors and state layers as buttons, shown in the following token module. Go to buttons for more details.
A: Unselected, B: Selected trailing icon
States
States are visual representations used to communicate the status of a component or an interactive element. More on states
Split button states use the same colors and state layers as buttons and icon buttons. Go to those specs for details.
Leading button shape
The inner corners change shape for hovered, focused, and pressed states.
Trailing button shape
The inner corners change shape for hovered, focused, and pressed states, and the icon becomes centered when selected.
Measurements
Text and icons are optically centered when the buttons are asymmetrical. They’re centered normally when symmetrical.
Menu icon offset when unselected:
The inner corner radius changes depending on button sizing. The space should always be 2dp.
![Inner padding and inner corner measurements of the...
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.