2022-03-26 10:17:01 +13:00
|
|
|
defmodule AshHqWeb.Components.CalloutText do
|
2022-08-07 11:22:58 +12:00
|
|
|
@moduledoc "Highlights some text on the page"
|
2024-04-03 09:38:44 +13:00
|
|
|
use Phoenix.Component
|
2022-03-26 10:17:01 +13:00
|
|
|
|
2022-12-21 20:25:09 +13:00
|
|
|
import AshHqWeb.Tails
|
2022-09-09 16:31:50 +12:00
|
|
|
|
2024-04-03 09:38:44 +13:00
|
|
|
attr :text, :string, required: true
|
|
|
|
attr :class, :any, default: ""
|
2022-09-09 16:31:50 +12:00
|
|
|
|
2024-04-03 09:38:44 +13:00
|
|
|
def callout(assigns) do
|
|
|
|
~H"""
|
2022-10-12 08:19:19 +13:00
|
|
|
<span class={classes(["text-primary-light-600 dark:text-primary-dark-400 font-bold", @class])}>
|
2024-04-03 09:38:44 +13:00
|
|
|
<%= @text %>
|
2022-03-26 10:17:01 +13:00
|
|
|
</span>
|
|
|
|
"""
|
|
|
|
end
|
|
|
|
end
|