mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-20 21:33:10 +12:00
22 lines
476 B
Elixir
22 lines
476 B
Elixir
defmodule AshHqWeb.Components.CalloutText do
|
|
@moduledoc "Highlights some text on the page"
|
|
use Surface.Component
|
|
|
|
import AshHq.Colors
|
|
|
|
prop text, :string, required: true
|
|
|
|
def render(%{__context__: %{platform: :ios}} = assigns) do
|
|
~F"""
|
|
<text color={primary_light_600()}>{@text}</text>
|
|
"""
|
|
end
|
|
|
|
def render(assigns) do
|
|
~F"""
|
|
<span class="text-primary-light-600 dark:text-primary-dark-400 font-bold">
|
|
{@text}
|
|
</span>
|
|
"""
|
|
end
|
|
end
|