Services
Solutions
Industries
Regions
Book a call 085 369 7668 info@neddev.com

Toasts: succes, fout, voortgang, ongedaan maken New

Four toast types on one quote screen: success (auto-hides after 5 s), error (stays, with "Retry" and loading state), progress with a bar ending in "Download", and delete with "Undo" and a countdown bar. They stack like a deck and fan out on hover or focus; timers pause then and when the tab is hidden. Announced via aria-live (errors assertive). Entrance with @starting-style.

Offerte 2026-041Concept
Keukenrenovatie fam. Bakker, Zeist € 18.450,00 incl. btw

Offerte 2026-041 is verwijderd.

    How to use it

    1. Paste the HTML where the components 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.
    <!-- Toasts: succes, fout, voortgang, ongedaan maken · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
    <div class="jouw-container">
    <div class="tsv">
      <div class="tsv__card">
        <div class="tsv__row"><span class="tsv__eyebrow">Offerte 2026-041</span><span class="tsv__state">Concept</span></div>
        <strong class="tsv__title">Keukenrenovatie fam. Bakker, Zeist</strong>
        <span class="tsv__amt">€ 18.450,00 incl. btw</span>
        <div class="tsv__btns"><button type="button" data-t="ok">Opslaan</button><button type="button" data-t="err">Versturen</button><button type="button" data-t="prog">PDF maken</button><button type="button" data-t="undo" class="tsv__del">Verwijderen</button></div>
      </div>
      <div class="tsv__gone"><p>Offerte 2026-041 is verwijderd.</p><button type="button" class="tsv__restore">Zet voorbeeld terug</button></div>
      <ol class="tsv__region" aria-label="Meldingen"></ol>
      <div class="tsv__sr" aria-live="polite"></div><div class="tsv__sr" aria-live="assertive"></div>
    </div>
    </div>

    More components

    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 →