Phoenix.LiveView.Helpers.component

You're seeing just the macro component, go back to Phoenix.LiveView.Helpers module for more information.
Link to this macro

component(func, assigns \\ [], do_block \\ [])

View Source (macro)

Renders a component defined by the given function.

It takes two optional arguments, the assigns to pass to the given function and a do-block - which will be converted into a @inner_block assign (see render_block/3 for more information).

The given function must expect one argument, which are the assigns as a map.

Examples

The function can be either local:

<%= component(&weather_component/1, city: "Kraków") %>

Or remote:

<%= component(&MyApp.Weather.component/1, city: "Kraków") %>