https://i.stack.imgur.com/cjGvh.png
Upon examining the materialize documentation, it is evident that implementing this on a basic HTML file is straightforward: simply paste the HTML code into the body and add the JavaScript initializer within a script tag. The functionality works seamlessly.
My inquiry pertains to utilizing this in a Vue component. Specifically, I am referring to a .vue file consisting of template, script, and style sections.