Title

Samples

Basic

0.3ms 305 allocs
View Source
<%= render "shared/title" do |title| %>
  <% title.title "Title" %>
  <% title.actions do %>
    <%= link_to "Home", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %>
    <%= link_to "Another link", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %>
  <% end %>
<% end %>

Options

Name Required Type Default Description
title
Content Block
actions
Content Block