livebook/lib/livebook_web/live/page_helpers.ex

19 lines
299 B
Elixir
Raw Normal View History

defmodule LivebookWeb.PageHelpers do
use Phoenix.Component
@doc """
Renders page title.
## Examples
2021-09-19 05:51:16 +08:00
<.title text="Explore" socket={@socket} />
"""
def title(assigns) do
~H"""
2022-09-03 04:06:22 +08:00
<h1 class="text-2xl text-gray-800 font-medium">
<%= @text %>
</h1>
"""
end
end