Phlex components can be rendered from existing Erb, Slim, Haml, or Liquid views.
<h1>Hello</h1>
<%= render TailwindNav.new title: "Site Menu" do |it| %>
<% it.item("/") { "Home" } %>
<% it.item("/about") { "About" } %>
<% it.item("/contact") { "Contact" } %>
<% end %>
h1 Hello
= render TailwindNav.new title: "Site Menu" do |it|
- it.item("/") { "Home" }
- it.item("/about") { "About" }
- it.item("/contact") { "Contact" }