Sha256: f8a0335a74c6c86ce12e1a8a1c9c4c4cd80e79b91ebd6e499f4ef0d811b8628e

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

<%= render component_tag(x: {
  data: x_data("appColorPickerButton", {selected: selected}),
  "@dropdown:mount": "onDropdownMount()"
}) do %> 
  <%= input %>
  <%= 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 %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
coveragebook_components-0.5.0 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb