ash_hq/lib/ash_hq_web/components/callout_text.ex

23 lines
477 B
Elixir
Raw Normal View History

2022-03-26 10:17:01 +13:00
defmodule AshHqWeb.Components.CalloutText do
@moduledoc "Highlights some text on the page"
2022-03-26 10:17:01 +13:00
use Surface.Component
import AshHq.Classes
prop text, :string, required: true
def render(%{__context__: %{platform: :ios}} = assigns) do
~F"""
<text color={primary_light_600()}>{@text}</text>
"""
end
2022-03-26 10:17:01 +13:00
def render(assigns) do
~F"""
2022-09-08 15:02:18 +12:00
<span class="text-primary-light-600 dark:text-primary-dark-400 font-bold">
{@text}
2022-03-26 10:17:01 +13:00
</span>
"""
end
end