mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 01:22:33 +09:00
first
This commit is contained in:
47
documentation/block/v-block-icon-documentation.md
Normal file
47
documentation/block/v-block-icon-documentation.md
Normal file
@@ -0,0 +1,47 @@
|
||||
### VBlock icon
|
||||
|
||||
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="Team Tasks" subtitle="View all tasks">
|
||||
<template #icon>
|
||||
<VIconBox color="success" rounded>
|
||||
<VIcon icon="lucide:clock" />
|
||||
</VIconBox>
|
||||
</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="Team Tasks" subtitle="View all tasks">
|
||||
<template #icon>
|
||||
<VIconBox color="success" rounded>
|
||||
<VIcon icon="lucide:clock"/>
|
||||
</VIconBox>
|
||||
</template>
|
||||
<template #action>
|
||||
<VButton color="primary" elevated>View</VButton>
|
||||
</template>
|
||||
</VBlock>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--/example-->
|
||||
Reference in New Issue
Block a user