CodingLaboratory
Lab Commands
Enter The Lab

Component Lab / feedback-overlays / liquid-state-toast

Stable release
Back to category

Open experiment

Liquid state toast

Morphs one compact toast between syncing, success, warning, and error states. A cycle action changes semantic state; dismiss removes it and restores it through an undo action. Demonstrates a persistent state-morphing toast rather than a stack of transient messages.

Lab tested Responsive Dark mode Interactive
Version
1.0.0
Updated
2026-08-02
Dependencies
Zero
Live canvasInstant token updates
Source filesEditable and export-ready
<section class="cmp-liquid-state-toast cmp-atlas" data-state="idle" data-variant="5">
  <div class="cmp-atlas__feedback-scene" aria-hidden="true"><i></i><i></i><i></i><b>30</b></div>
  <div class="cmp-atlas__feedback-copy">
    <span>Toasts</span>
    <h3>Liquid state toast</h3>
    <p>Morphs one compact toast between syncing, success, warning, and error states.</p>
  </div>
  <div class="cmp-atlas__choices">
    <button type="button" data-choice="0" aria-pressed="true">Inspect</button
    ><button type="button" data-choice="1" aria-pressed="false">Resolve</button
    ><button type="button" data-choice="2" aria-pressed="false">Archive</button>
  </div>
  <div class="cmp-atlas__feedback-actions">
    <button
      type="button"
      class="cmp-atlas__primary"
      data-primary
      data-active-label="State updated"
      aria-pressed="false"
    >
      Run interaction</button
    ><button type="button" data-choice="3" aria-pressed="false">Details</button>
  </div>
  <p data-status aria-live="polite">Ready · Escape resets the demo</p>
</section>
No runtime reactions detected Open in Editor

Validated in the lab

Experiment report

  • Schema and source files passed
  • Responsive test passed
  • Keyboard test passed
  • No console errors

Component ingredients

Dependencies
None
Browser support
Current Chrome, Current Edge, Current Firefox, Current Safari
Version
1.0.0
Last tested
2026-08-02

Accessibility notes

  • Every interactive target is a labelled native control with a visible focus treatment.
  • State changes are communicated through a polite text status and never by color alone.
  • The contained visual effects stop when the user requests reduced motion.

License: MIT License for open-source use, modification, and distribution.