mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 07:43:32 +09:00
52 lines
1.1 KiB
Markdown
52 lines
1.1 KiB
Markdown
### VBlock
|
|
|
|
Vuero provides a versatile flex block media component named `<VBlock />`.
|
|
VBlock has 2 named slots. One for the `icon` element, which can
|
|
be whatever you want, and one for the `action`.
|
|
|
|
<!--code-->
|
|
|
|
```vue
|
|
<template>
|
|
<VBlock title="Anna B." subtitle="UX Designer">
|
|
<template #icon>
|
|
<VAvatar
|
|
size="medium"
|
|
picture="https://media.cssninja.io/content/avatars/19.jpg"
|
|
badge="/images/icons/flags/germany.svg"
|
|
/>
|
|
</template>
|
|
<template #action>
|
|
<VButton color="primary" elevated>
|
|
View
|
|
</VButton>
|
|
</template>
|
|
</VBlock>
|
|
</template>
|
|
```
|
|
|
|
<!--/code-->
|
|
|
|
<!--example-->
|
|
|
|
<div class="field">
|
|
<div class="control">
|
|
<div class="l-card">
|
|
<VBlock title="Anna B." subtitle="UX Designer">
|
|
<template #icon>
|
|
<VAvatar
|
|
size="medium"
|
|
picture="https://media.cssninja.io/content/avatars/19.jpg"
|
|
badge="/images/icons/flags/germany.svg"
|
|
/>
|
|
</template>
|
|
<template #action>
|
|
<VButton color="primary" elevated>View</VButton>
|
|
</template>
|
|
</VBlock>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--/example-->
|