Aurora.Uix.CoreComponentsImporter (Aurora UIX v0.1.4-rc.0)

Copy Markdown

Dynamically selects the core components module from either the provided options or the template configuration, and imports it along with Phoenix.Component.

Options

  • :core_components_module (module()) - Optional. Override the default core components module. If not provided, uses the module returned by the template's default_core_components_module/0 callback.

Examples

defmodule MyAppWeb.MyComponent do
  use Aurora.Uix.CoreComponentsImporter
end

defmodule MyAppWeb.CustomComponent do
  use Aurora.Uix.CoreComponentsImporter, core_components_module: MyAppWeb.CustomComponents
end