Home > Blockchain >  How should I understand in a vuejs template <Menu as="<div"
How should I understand in a vuejs template <Menu as="<div"

Time:03-31

I am rather new to Vuejs which I use with tailwind. There is some markup I have trouble understanding such as

<Menu as="<div>"

I guess the tag may be considered as a tag but if so, why to use this ? I cannot find an explanation anywhere. Thank you for help

CodePudding user response:

It should be as="div", according to the component api in headlessUI framework :

The element or component the Menu should render as.

That means the root rendered element taken by Menu

  • Related