Skip to content

Cell ​

Demo ​

Cell Cross-platform Example and Preview

H5 LiveInteractive browser runtime
Account & security
Protected
Notifications
Activity and system updates
Preferences
Personalized

Basic Usage ​

vue
<template>
  <VCell title="Title" desc="Description" />
  <VCell title="Title" sub-title="Subtitle" desc="Right content" />
</template>
vue
<template>
  <VCell title="With icon" icon="◎" desc="Content" />
  <VCell title="Link cell" desc="Details" is-link />
  <VCell title="Route link" desc="View" to="/profile" />
</template>

Group ​

vue
<template>
  <VCellGroup title="Account" desc="Profile">
    <VCell title="Nickname" sub-title="Public display" desc="Varo" />
    <VCell title="Address" desc="Configure" is-link />
  </VCellGroup>
</template>

Alignment And Size ​

vue
<template>
  <VCell title="Centered" desc="Content" center />
  <VCell title="Large" desc="Content" size="large" />
  <VCell title="Left desc" desc="Longer description" desc-text-align="left" />
  <VCell title="Fixed title width" desc="Content" title-width="120px" />
</template>

Radius And Slots ​

vue
<template>
  <VCellGroup title="Custom">
    <VCell title="Radius" desc="16px" round-radius="16px" />
    <VCell>
      <template #icon>
        i
      </template>
      <template #title>
        Custom title
      </template>
      <template #desc>
        Custom desc
      </template>
      <template #link>
        →
      </template>
    </VCell>
  </VCellGroup>
</template>

Cell Props ​

PropTypeDefaultDescription
titlestringundefinedLeft title
subTitlestringundefinedSubtitle below title
descstringundefinedRight description
descTextAlign'left' | 'right''right'Right description alignment
iconstringundefinedLeft icon content
isLinkbooleanfalseShow the right arrow and clickable state
tostringundefinedLink href; renders an anchor when provided
roundRadiusstringundefinedCustom radius CSS variable
centerbooleanfalseVertically center content
size'default' | 'large''default'Cell size
clickablebooleanfalseEnable clickable state
titleWidthnumber | stringundefinedTitle width

CellGroup Props ​

PropTypeDefaultDescription
titlestringundefinedGroup title
descstringundefinedGroup right description

Events ​

EventPayloadDescription
clickMouseEvent | KeyboardEventFired when the cell is clicked or keyboard-activated

Slots ​

SlotDescription
defaultCustom cell main content or CellGroup content
titleCustom title
subTitleCustom subtitle
descCustom right description
iconCustom left icon
linkCustom right arrow

Data Attributes ​

AttributeDescription
data-sizeCurrent size
data-centerCenter state
data-clickableClickable state
data-linkLink state
data-desc-alignDescription alignment