Emoji picker
Search, categories and skin tones.
Usage
After the one-time setup, call the helper directly from ERB. No component import is needed.
<%= fields_for :project do |form| %>
<%= lc_emoji_picker form: form, field: :emoji, value: "β¨", quick: %w[π₯ π£ π β], label: "Choose an emoji", catalog_url: "/emoji-catalog.html" %>
<% end %>
Examples
Emoji picker
Search results
0No emoji found.
<%= fields_for :project do |form| %>
<%= lc_emoji_picker form: form, field: :emoji, value: "β¨", quick: %w[π₯ π£ π β], label: "Choose an emoji", catalog_url: "/emoji-catalog.html" %>
<% end %>
API reference
Helpers render semantic HTML and include their interaction wiring. Pass native attributes through class:, data:, aria: and the usual Rails options. Blocks use captured ERB content.
lc_emoji_picker
lc_emoji_picker(form:, field:, label:, catalog_url:, value: nil, quick: [], recent: [], recent_scope: nil, auto_submit: false, popover_size: :md, picker_class: nil, trigger_class: nil, popover_class: nil, **attributes)
| Input | Default | Values |
|---|---|---|
| form | Required | β |
| field | Required | β |
| label | Required | Accessible name, visible where applicable |
| catalog_url | Required | GET URL for lazy-loaded emoji catalog HTML |
| value | nil | β |
| quick | [] | β |
| recent | [] | β |
| recent_scope | nil | β |
| auto_submit | false | true Β· false |
| popover_size | :md | β |
| picker_class | nil | β |
| trigger_class | nil | β |
| popover_class | nil | β |
| attributes | {} | Native HTML attributes; class:, data: and aria: merge with defaults |
Styling and extension
Use class: to merge utilities, native attributes for application behavior, and the theming guide for the shared palette. For custom markup, the advanced class helpers expose the same styles, including glass surfaces and class merging.