mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 04:42:34 +09:00
103 lines
2.9 KiB
Markdown
103 lines
2.9 KiB
Markdown
### Icon popover
|
|
|
|
Popovers can hold any type of content, including existing Vuero components. You
|
|
can easily add a `<VIconBox />` inside your popover.
|
|
|
|
<!--code-->
|
|
|
|
```vue
|
|
<template>
|
|
<Tippy>
|
|
<VButton>Hover me!</VButton>
|
|
<template #content>
|
|
<div class="v-popover-content is-text">
|
|
<div class="popover-head">
|
|
<VIconBox size="small" color="primary">
|
|
<i class="lnil lnil-crown-alt-1" />
|
|
</VIconBox>
|
|
<h4 class="dark-inverted">
|
|
Hover Popover
|
|
</h4>
|
|
</div>
|
|
<div class="popover-body">
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</Tippy>
|
|
</template>
|
|
```
|
|
|
|
<!--/code-->
|
|
|
|
<!--example-->
|
|
|
|
<div class="buttons">
|
|
<Tippy>
|
|
<VButton class="mx-1">Hover me!</VButton>
|
|
<template #content>
|
|
<div class="v-popover-content is-text">
|
|
<div class="popover-head">
|
|
<VIconBox size="small" color="primary">
|
|
<VIcon icon="lucide:x"/>
|
|
</VIconBox>
|
|
<h4 class="dark-inverted">Hover Popover</h4>
|
|
</div>
|
|
<div class="popover-body">
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</Tippy>
|
|
<Tippy>
|
|
<VButton class="mx-1">Hover me!</VButton>
|
|
<template #content>
|
|
<div class="v-popover-content is-text">
|
|
<div class="popover-head">
|
|
<VIconBox size="small" color="info">
|
|
<i class="lnil lnil-crown-alt-1"></i>
|
|
</VIconBox>
|
|
<h4 class="dark-inverted">Hover Popover</h4>
|
|
</div>
|
|
<div class="popover-body">
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</Tippy>
|
|
<Tippy>
|
|
<VButton class="mx-1">Hover me!</VButton>
|
|
<template #content>
|
|
<div class="v-popover-content is-text">
|
|
<div class="popover-head">
|
|
<VIconBox size="small" color="orange">
|
|
<i class="lnil lnil-crown-alt-1"></i>
|
|
</VIconBox>
|
|
<h4 class="dark-inverted">Hover Popover</h4>
|
|
</div>
|
|
<div class="popover-body">
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</Tippy>
|
|
<Tippy>
|
|
<VButton class="mx-1">Hover me!</VButton>
|
|
<template #content>
|
|
<div class="v-popover-content is-text">
|
|
<div class="popover-head">
|
|
<VIconBox size="small" color="green">
|
|
<i class="lnil lnil-crown-alt-1"></i>
|
|
</VIconBox>
|
|
<h4 class="dark-inverted">Hover Popover</h4>
|
|
</div>
|
|
<div class="popover-body">
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</Tippy>
|
|
</div>
|
|
|
|
<!--/example-->
|