Sha256: d00b09625ceeca6df24181441dfadf23e3de99ad630ef0b336811620927934b8
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
<% if @example.type == :group %> <div class="p-4 prose prose-sm"> <em class='opacity-50'>Params are not supported for grouped previews.</em> </div> <% elsif items.none? %> <div class="p-4 prose prose-sm"> <em class='opacity-50'>No params configured.</em> </div> <% else %> <div class="py-3"> <% items.each do |param| %> <div class="px-4 py-3" x-data="param" @document:patched="setFocus"> <div class="flex items-start max-w-[800px]"> <div class="w-[200px] flex-none py-2"> <label for="param-<%= param[:name] %>" class="font-bold"><%= param[:name].titleize %></label> </div> <div class="flex-grow" @focus="focussed = true" @blur="focussed = false"> <%= render "workbench/inspector/params/#{param[:input]}", **param, value: params.key?(param[:name]) ? params[param[:name]] : param[:default], id: "#{@example.id}-param-#{param[:name]}" %> </div> </div> </div> <% end %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lookbook-0.4.6 | app/views/lookbook/workbench/inspector/_params.html.erb |
lookbook-0.4.5 | app/views/lookbook/workbench/inspector/_params.html.erb |