<template><!-- simple popover --><pclass="my-4">Simple popover</p><v-popoverv-bind="example"><template #reference="{ reference, onTrigger }"><v-button:ref="reference"v-on="onTrigger"
>
Show simple popover
</v-button></template><v-cardwidth="220px"><v-popover-header /><divclass="p-5">This is popover.</div></v-card></v-popover><!-- form popover --><pclass="my-4">Form popover</p><v-popoverv-bind="example"title="Login"
><template #reference="{ reference, onTrigger }"><v-button:ref="reference"v-on="onTrigger"
>
Show form popover
</v-button></template><v-cardclass="w-[250px]"><v-popover-header /><divclass="flex flex-col gap-y-4 p-5"><divclass="flex flex-col gap-y-1"><v-inputtype="text"label="Email"id="login"placeholder="Enter email"
></v-input></div><divclass="flex flex-col gap-y-1"><v-inputtype="password"label="Password"id="password"placeholder="Enter password"
></v-input></div><v-buttonmod-button="size:small"class="ml-auto mt-2"
>
Login
</v-button></div></v-card></v-popover><!-- tooltip popover --><pclass="my-4">Tooltip popover</p><v-popoverv-bind="example"title="Header"
><template #reference="{ reference, onTrigger }"><v-button:ref="reference"v-on="onTrigger"
>
Show tooltip popover
</v-button></template><v-cardmod-card="preset:tooltip"class="w-[330px] p-7"
>
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the
1500s, when an unknown printer took a galley of type and scrambled it to
make a type specimen book. It has survived not only five centuries, but
also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset
sheets containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of Lorem
Ipsum.
</v-card></v-popover></template>
You can also control state of the popover by using v-trigger component. The for prop of the v-trigger should be the same as id of the popover. The advantage of this method over reference slot is that v-triggers can be put anywhere in application.