Load Vue Single File Components (.vue files) as LiveView function components.
Usage
defmodule MyAppWeb.Components do
use Phoenix.Component
PhoenixVapor.Vue.component :card, "assets/vue/Card.vue"
PhoenixVapor.Vue.component :dashboard, "assets/vue/Dashboard.vue"
endThis compiles the Vue template at compile time via Vize.vapor_ir!/1
and generates a function component that renders the IR against assigns.
The SFC's <template> block is extracted and compiled. <script> and
<style> blocks are currently ignored (see PhoenixVapor roadmap for
QuickBEAM integration plans).
Summary
Functions
Define a function component from a .vue file's template.