ash_hq/lib/ash_hq_web/components/callout_text.ex
2023-08-11 01:48:24 -07:00

17 lines
385 B
Elixir

defmodule AshHqWeb.Components.CalloutText do
@moduledoc "Highlights some text on the page"
use Surface.Component
import AshHqWeb.Tails
prop text, :string, required: true
prop class, :css_class
def render(assigns) do
~F"""
<span class={classes(["text-primary-light-600 dark:text-primary-dark-400 font-bold", @class])}>
{@text}
</span>
"""
end
end