Sha256: d15b387b066e20112ab428840a7c46429e61758b01774767ff97871ed0ef28c6
Contents?: true
Size: 630 Bytes
Versions: 25
Compression:
Stored size: 630 Bytes
Contents
<%= render component_tag(x: { data: x_data("colorPickerButton", {selected: selected}), "@dropdown:mount": "onDropdownMount" }) do %> <div x-effect="$dispatch('color-picker:change', {color: selectedColor})"> <%= render button do |btn| %> <% btn.with_icon do %> <%= icon %> <% end %> <% btn.with_dropdown do %> <div @color-picker:select="selectedColor = $event.detail.selectedColor;" x-cloak> <div data-role="color-picker"> <%= picker %> </div> </div> <% end %> <%= button_text %> <% end %> </div> <% end %>
Version data entries
25 entries across 25 versions & 1 rubygems