Emoji Picker
Search named reactions and submit the selected emoji as a form value.
HTML
<div class="rlw-emoji" data-rlw-emoji>
<button class="rl-button rl-button-sm rl-button-secondary" type="button" data-rlw-open>Choose a reaction</button>
<dialog class="rl-dialog" aria-label="Choose an emoji"><div class="rl-dialog-body">
<div class="rlw-command-head"><input type="search" placeholder="Find an emoji" aria-label="Search emoji" autofocus><button type="button" aria-label="Close picker" data-rl-close><svg class="rlw-icon" aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m6 6 12 12M18 6 6 18"/></svg></button></div>
<div class="rlw-emoji-grid"><button type="button" aria-label="spark">✳️</button><button type="button" aria-label="thumbs up">👍</button><button type="button" aria-label="heart">❤️</button><button type="button" aria-label="celebrate">🎉</button><button type="button" aria-label="done">✅</button><button type="button" aria-label="watching">👀</button><button type="button" aria-label="idea">💡</button><button type="button" aria-label="leaf">🌿</button><button type="button" aria-label="star">⭐</button><button type="button" aria-label="fire">🔥</button><button type="button" aria-label="rocket">🚀</button><button type="button" aria-label="coffee">☕</button></div><p class="rlw-command-empty" hidden>No matching emoji</p>
</div></dialog>
<input type="hidden" name="reaction" value=""><output role="status" class="rlw-status"></output>
</div>Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-workspace.css">
<script defer src="/mero.js"></script>
<script defer src="/mero-workspace.js"></script>