defmodule CvGenView.Text do use Phoenix.Component attr(:text, :any, required: true) attr(:rest, :global) def text(assigns), do: ~H""" <p {@rest}><%= @text %></p> """ end