<%= render(Yattho::Alpha::AutoComplete.new(label_text: "Fruits", src: "/auto_complete", input_id: "fruits-input--custom-results", list_id: "fruits-popup--custom-results")) do |component| %> <% component.results(classes: "custom-class") do %> <%= render(Yattho::Alpha::AutoComplete::Item.new(selected: true, value: "apple")) do %> Apple <% end %> <%= render(Yattho::Alpha::AutoComplete::Item.new(value: "orange")) do %> Orange <% end %> <% end %> <% end %>