<%= render(Yattho::Beta::AutoComplete.new(label_text: "Select a fruit", src: "/view-components/rails-app/auto_complete", input_id:"input-id-1", list_id: "list-id-1")) do |component| %> <% component.with_leading_visual_icon(icon: :search) %> <% end %>