mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 01:12:30 +09:00
first
This commit is contained in:
55
documentation/block/v-block-center-documentation.md
Normal file
55
documentation/block/v-block-center-documentation.md
Normal file
@@ -0,0 +1,55 @@
|
||||
### Centered align
|
||||
|
||||
You can adjust the `<VBlock />` component flex alignment
|
||||
using the `center` prop. This will apply the `flex` property
|
||||
`align-items: center;` to the component.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<VBlock
|
||||
title="Anna B."
|
||||
subtitle="UX Designer"
|
||||
center
|
||||
>
|
||||
<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" center>
|
||||
<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-->
|
||||
Reference in New Issue
Block a user