<%= render(Yattho::Beta::Button.new(id: "button-1")) do |component| %> <% component.with_tooltip(text: tooltip_text, type: type, direction: direction) %> Button 1 <% end %> <%= render(Yattho::Beta::Button.new(id: "button-2")) do |component| %> <% component.with_tooltip(text: tooltip_text, type: type, direction: direction) %> Button 2 <% end %> <%= render(Yattho::Beta::Button.new(id: "button-3")) do |component| %> <% component.with_tooltip(text: tooltip_text, type: type, direction: direction) %> Button 3 <% end %>