• Lightest
  • Light
  • Dark
  • Darkest
  • Medium
  • Large
  • LTR
  • RTL

Split Button

Component status
Contribution
Last releasedOctober 20, 2020
Current version@spectrum-css/splitbutton@3.0.0-beta.5

Variants


CTA
Contribution

A CTA split button.



Show markup
<div class="spectrum-SplitButton">
  <button class="spectrum-Button spectrum-Button--cta spectrum-SplitButton-action">Split Button</button>
  <button class="spectrum-Button spectrum-Button--cta spectrum-SplitButton-trigger">
    <svg class="spectrum-Icon spectrum-UIIcon-ChevronDownMedium spectrum-SplitButton-icon" focusable="false" aria-hidden="true">
      <use xlink:href="#spectrum-css-icon-ChevronDownMedium" />
    </svg>
  </button>
</div>

<br>
<br>

<div class="spectrum-SplitButton spectrum-SplitButton--left">
  <button class="spectrum-Button spectrum-Button--cta spectrum-SplitButton-trigger">
    <svg class="spectrum-Icon spectrum-UIIcon-ChevronDownMedium spectrum-SplitButton-icon" focusable="false" aria-hidden="true">
      <use xlink:href="#spectrum-css-icon-ChevronDownMedium" />
    </svg>
  </button>
  <button class="spectrum-Button spectrum-Button--cta spectrum-SplitButton-action">Split Button</button>
</div>

Primary
Contribution

A primary split button.



Show markup
<div class="spectrum-SplitButton">
  <button class="spectrum-Button spectrum-Button--primary spectrum-SplitButton-action">Split Button</button>
  <button class="spectrum-Button spectrum-Button--primary spectrum-SplitButton-trigger">
    <svg class="spectrum-Icon spectrum-UIIcon-ChevronDownMedium spectrum-SplitButton-icon" focusable="false" aria-hidden="true">
      <use xlink:href="#spectrum-css-icon-ChevronDownMedium" />
    </svg>
  </button>
</div>

<br>
<br>

<div class="spectrum-SplitButton spectrum-SplitButton--left">
  <button class="spectrum-Button spectrum-Button--primary spectrum-SplitButton-trigger">
    <svg class="spectrum-Icon spectrum-UIIcon-ChevronDownMedium spectrum-SplitButton-icon" focusable="false" aria-hidden="true">
      <use xlink:href="#spectrum-css-icon-ChevronDownMedium" />
    </svg>
  </button>
  <button class="spectrum-Button spectrum-Button--primary spectrum-SplitButton-action">Split Button</button>
</div>

Secondary
Contribution

A secondary split button.



Show markup
<div class="spectrum-SplitButton">
  <button class="spectrum-Button spectrum-Button--secondary spectrum-SplitButton-action">Split Button</button>
  <button class="spectrum-Button spectrum-Button--secondary spectrum-SplitButton-trigger">
    <svg class="spectrum-Icon spectrum-UIIcon-ChevronDownMedium spectrum-SplitButton-icon" focusable="false" aria-hidden="true">
      <use xlink:href="#spectrum-css-icon-ChevronDownMedium" />
    </svg>
  </button>
</div>

<br>
<br>

<div class="spectrum-SplitButton spectrum-SplitButton--left">
  <button class="spectrum-Button spectrum-Button--secondary spectrum-SplitButton-trigger">
    <svg class="spectrum-Icon spectrum-UIIcon-ChevronDownMedium spectrum-SplitButton-icon" focusable="false" aria-hidden="true">
      <use xlink:href="#spectrum-css-icon-ChevronDownMedium" />
    </svg>
  </button>
  <button class="spectrum-Button spectrum-Button--secondary spectrum-SplitButton-action">Split Button</button>
</div>