Files
oa/documentation/block/v-block-icon-center-documentation.md
2025-05-24 01:49:48 +09:00

1.1 KiB

Icon centered

You can adjust the <VBlock /> component flex alignment using the center prop. This will apply the flex property align-items: center; to the component.

<template>
  <VBlock
    title="Team Tasks"
    subtitle="View all tasks"
    center
  >
    <template #icon>
      <VIconBox
        color="info"
        size="medium"
        rounded
      >
        <VIcon icon="lucide:chrome" />
      </VIconBox>
    </template>
    <template #action>
      <VButton color="primary" elevated>
        View
      </VButton>
    </template>
  </VBlock>
</template>
View