Home Work
SaaS developmentAI developmentAPI developmentMobile app developmentGoogle Ads managementHeadless ShopifyLaravel developmentNext.js developmentReact developmentTypeScript engineeringUI/UX designSEO & AEOEcommerce development
AI solutionsB2B platformsE-commerceHospitalityLead generationLogisticsEducationProcess automationSaaS platformsStartup MVPReal estateHealthcare
LegalHealthcareReal estateFinanceHospitality
The HagueRotterdamAmsterdamUtrechtEindhovenAlmereBredaArnhemNijmegenTilburgEnschedeGroningenLeidenDelftZoetermeerDen Bosch
Studio
AboutProcessLabBlogContact

Gesplitste knop met menu New

A primary action with a caret beside it for the variants, such as Send next to "Schedule" and "Save as draft". The menu follows the WAI-ARIA menu pattern: arrows, Home/End, Escape back to the button, focus goes to the first item. The menu opens upwards so it fits in tight cards. For quote and invoice screens, CMS publishing and anywhere with one normal and a few special actions.

Badkamer Delft, € 12.480

How to use it

  1. Paste the HTML where the buttons should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. Add the JavaScript and call init() with the element that contains the HTML.
<!-- Gesplitste knop met menu · NedDev · eigen werk. -->
<div class="jouw-container">
<div class="ksp">
<div class="ksp__box">
<div class="ksp__split">
<button class="ksp__main" type="button">Offerte versturen</button>
<button class="ksp__more" type="button" aria-haspopup="menu" aria-expanded="false" aria-controls="ksp-menu" aria-label="Meer verzendopties"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M4 10l4-4 4 4"/></svg></button>
<div class="ksp__menu" id="ksp-menu" role="menu" aria-label="Verzendopties" hidden>
<button class="ksp__it" type="button" role="menuitem" tabindex="-1" data-msg="verstuurd met een kopie naar jou">Versturen met kopie naar mij</button>
<button class="ksp__it" type="button" role="menuitem" tabindex="-1" data-msg="ingepland voor morgen 9:00">Inplannen voor morgen 9:00</button>
<button class="ksp__it" type="button" role="menuitem" tabindex="-1" data-msg="opgeslagen als concept">Opslaan als concept</button>
</div>
</div>
<p class="ksp__st" role="status">Badkamer Delft, € 12.480</p>
</div>
</div>
</div>

More buttons

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →