A compact, dark-themed tip jar with preset amounts and total.
★ 0 community votes · Safety scan passed · Sandboxed previewTip 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.
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.
<div class="tip-jar"><div class="total">Total: $<span id="total">0.00</span></div><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>
.tip-jar{background:#222;color:#fff;padding:10px;border-radius:8px;font-family:Arial,Helvetica,sans-serif;width:200px}.tip-jar .total{font-size:1.2em;margin-bottom:8px}.tip-jar .buttons button{background:#444;color:#fff;border:none;border-radius:4px;padding:6px 10px;margin:2px;cursor:pointer}.tip-jar .buttons button:hover{background:#555}
const jar=document.querySelector('.tip-jar');let total=0;jar.querySelectorAll('button').forEach(b=>b.addEventListener('click',()=>{total+=parseFloat(b.dataset.amt);jar.querySelector('#total').textContent=total.toFixed(2)}));
Build your own on MorphCanvas