MorphCanvas
Home › Gallery › Currency Tip Jar Widget
Reading size:

Currency Tip Jar Widget

A compact, dark-themed tip jar with preset amount buttons and a running total.

★ 0 community votes · Safety scan passed · Sandboxed preview
Listen to Component Overview (AI Narration)
Viewport:
Backdrop:
Safety Scan
Verified Safe (0 Violations)
Sandbox Isolation
Active (allow-scripts)
Code Dependencies
Zero / Standalone Vanilla
Last Synthesized
2026-10-05

About this component

Currency Tip Jar Widget is an interface component generated on MorphCanvas, an infinite AI workspace that turns written intent into reviewable HTML, CSS, and JavaScript widgets. This component passed MorphCanvas’s automated safety scan, which checks for unsafe patterns such as external network calls, storage access, inline event handlers, and code execution, and it is rendered here inside a sandboxed preview frame.

How it was built

A creator described the result they wanted, MorphCanvas routed the request through its AI provider chain with automatic failover, scanned the generated code, and published the reviewed component to the public library. You can build and publish your own components on the MorphCanvas canvas.

Community Evaluation & Feedback

How would you characterize this AI-generated component for your projects?

Select an evaluation tag above to record your vote.

Source Code

HTML
<div id="tip-jar"><h3>Tip Jar</h3><div class="buttons"><button data-amt="1">$1</button><button data-amt="5">$5</button><button data-amt="10">$10</button><button data-amt="20">$20</button></div><div class="total">Total: <span id="total">0</span></div><button id="reset">Reset</button></div>
CSS
#tip-jar{background:#222;color:#fff;font-family:sans-serif;padding:10px;border-radius:8px;width:200px;}.buttons{display:flex;gap:5px;margin:10px 0;}.buttons button{background:#444;color:#fff;border:none;padding:5px;border-radius:4px;cursor:pointer;}.buttons button:hover{background:#555}.total{font-size:1.2em;margin-bottom:10px;}.buttons button:active{transform:scale(.95)}#reset{background:#444;color:#fff;border:none;padding:5px;border-radius:4px;cursor:pointer;width:100%;}.buttons button:focus,#reset:focus{outline:none}
JavaScript
(()=>{let t=0;const s=document.getElementById('total'),r=document.getElementById('reset');document.querySelectorAll('[data-amt]').forEach(b=>b.addEventListener('click',()=>{t+=+b.dataset.amt;s.textContent=t;}));r.addEventListener('click',()=>{t=0;s.textContent=0;});})();
Build your own on MorphCanvas
Copied to clipboard!