Split action
Split action: a CSS button. Copy the rules, or the prompt that rebuilds it.
CSS
.btn-089 {
display: inline-flex;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 1px 2px rgba(0,0,0,.15)
}
.btn-089 button {
font: 600 14px/1 system-ui,sans-serif;
color: #fff;
background: #4f46e5;
border: 0;
padding: 12px 18px;
cursor: pointer;
transition: background .15s
}
.btn-089 button+button {
padding: 12px 10px;
border-left: 1px solid rgba(255,255,255,.25);
display: grid;
place-items: center
}
.btn-089 button:hover {
background: #4338ca
}
.btn-089 button:focus-visible {
outline: 2px solid #4f46e5;
outline-offset: 2px;
position: relative;
z-index: 1
}
.btn-089 button:active {
background: #3730a3
}
HTML
<div class="btn-089"><button>Save</button><button aria-label="More options"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg></button></div>Prompt
A split button: a main indigo #4f46e5 "Save" segment (white 14px semibold text, 12px by 18px padding) joined to a narrower right segment with a 14px chevron-down SVG, separated by a 1px 25%-white line, all inside one 8px-radius container with shadow 0 1px 2px rgba(0,0,0,.15). Each half hovers to #4338ca and presses to #3730a3 independently. Focus outline 2px indigo.