<% if @example.type == :group %>
Params are not supported for grouped previews.
<% elsif items.none? %>
No params configured.
<% else %>
<% items.each do |param| %>
<%= render "workbench/inspector/params/#{param[:input]}", **param, value: params.key?(param[:name]) ? params[param[:name]] : param[:default], id: "#{@example.id}-param-#{param[:name]}" %>
<% end %>
<% end %>