A compact, dark-themed profile card with avatar initials, role badge, and follow button.
★ 0 community votes · Safety scan passed · Sandboxed previewProfile Card 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="profile-card" role="article" aria-label="User profile card"><div class="avatar" aria-hidden="true">JD</div><div class="info"><div class="name">John Doe</div><span class="badge">Admin</span></div><button class="follow-btn" aria-pressed="false">Follow</button></div>
body{margin:0;background:#1e1e1e;font-family:Arial,sans-serif} .profile-card{background:#2a2a2a;color:#fff;padding:12px;border-radius:8px;display:flex;align-items:center;gap:12px;max-width:280px} .avatar{width:48px;height:48px;border-radius:50%;background:#4a90e2;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:18px} .info{flex:1} .name{font-weight:bold} .badge{background:#e67e22;color:#fff;border-radius:4px;padding:2px 6px;font-size:12px;margin-top:4px;display:inline-block} .follow-btn{background:#27ae60;color:#fff;border:none;border-radius:4px;padding:6px 12px;cursor:pointer;font-size:14px} .follow-btn:hover{background:#219150} .follow-btn[aria-pressed="true"]{background:#c0392b} .follow-btn[aria-pressed="true"]:hover{background:#a93226}
(function(){const btn=document.querySelector('.follow-btn');btn.addEventListener('click',()=>{const pressed=btn.getAttribute('aria-pressed')==='true';btn.setAttribute('aria-pressed',!pressed);btn.textContent=pressed?'Follow':'Following';});})();
Build your own on MorphCanvas