Skip to content
Components

Emoji picker

Search, categories and skin tones.

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 %>
<%= 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 %>

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)
InputDefaultValues
formRequiredβ€”
fieldRequiredβ€”
labelRequiredAccessible name, visible where applicable
catalog_urlRequiredGET URL for lazy-loaded emoji catalog HTML
valuenilβ€”
quick[]β€”
recent[]β€”
recent_scopenilβ€”
auto_submitfalsetrue Β· false
popover_size:mdβ€”
picker_classnilβ€”
trigger_classnilβ€”
popover_classnilβ€”
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.

API JSON Β· LLM reference