Cell

Install

import React from 'react';
import { Cell } from 'vant-react';

Usage

Basic Usage

<Cell
      title={{ text: 'Title', fontSize: '14px' }}
      content={{ text: 'Content', fontSize: '12px' }}
    />
<Cell
      title={{ text: 'Title', fontSize: '14px' }}
      content={{ text: 'Content', fontSize: '12px' }}
      description={{ text: 'description', fontSize: '12px' }}
    />

Cell Icon

Cell Tag

Round Cell

Value Only

URL

Action

API

Props

Attribute

Description

Type

Default

Required

title

Cell title

object

-

optional

titleIcon

Left side icon name

object

-

optional

content

Cell content

object

-

optional

contentIcon

Right side icon name

object

-

optional

description

Cell description

object

-

optional

Tag

Cell tag

React

Element

-

optional

url

Link URL

string

-

optional

replace

Whether open in current tab

boolean

-

optional

round

Whether to be round button

boolean

-

optional

Event

Event

Description

Arguments

click

Triggered when click cell and not disabled or loading

event: Event

Last updated

Was this helpful?