Skip to content

Commit 6cc7e3b

Browse files
committed
add icon prop
1 parent ec1d19e commit 6cc7e3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/algora_web/components/core_components.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,7 @@ defmodule AlgoraWeb.CoreComponents do
13391339

13401340
attr :id, :string, required: true
13411341
attr :value, :string, required: true
1342+
attr :icon, :string, default: "tabler-copy"
13421343

13431344
def copy_to_clipboard_button(assigns) do
13441345
~H"""
@@ -1362,7 +1363,7 @@ defmodule AlgoraWeb.CoreComponents do
13621363
>
13631364
<.icon
13641365
id={@id <> "-copy-icon"}
1365-
name="tabler-copy"
1366+
name={@icon}
13661367
class="absolute inset-0 m-auto h-3 w-3 flex items-center justify-center"
13671368
/>
13681369
<.icon

0 commit comments

Comments
 (0)