Where i can find the source code for <.link> function component?

I am new to elixir and phoenix and I have a very silly doubt (I apologize in advance).

Inside the core_components.ex file (lib/appname_web/components/core_components.ex) I can find the different function components that come by default with phoenix <.list> <.input> … but the <.link> is not defined in this file and, as far as I have been able to see, in none of my project. I have also tried to search in GitHub - phoenixframework/phoenix: Peace of mind from prototype to production and nothing. Could someone explain me where I can find the source code of <.link> please?

Hello and welcome,

It is in the Phoenix Liveview documentation

https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#link/1

From there, You can click on <\> on the right and go to the source code of the function

2 Likes

Thank you!!