Skip to content

CCol

A column in the 12-column grid system. Always used inside CRow. Column width is specified as a number from 1 to 12.

Column sizes

All 12 columns in action — from 1/12 to full width combinations.

4
4
4
6
6
3
9
1
2
3
4
5
6
7
8
9
10
11
12
Show code
vue
<template>
  <!-- Three equal columns -->
  <c-row>
    <c-col cols="4"><div>4</div></c-col>
    <c-col cols="4"><div>4</div></c-col>
    <c-col cols="4"><div>4</div></c-col>
  </c-row>

  <!-- Two halves -->
  <c-row>
    <c-col cols="6"><div>6</div></c-col>
    <c-col cols="6"><div>6</div></c-col>
  </c-row>

  <!-- Asymmetric -->
  <c-row>
    <c-col cols="3"><div>3</div></c-col>
    <c-col cols="9"><div>9</div></c-col>
  </c-row>
</template>

Responsive product cards

Cards stack on mobile, show 2 per row on sm, and 3 on md+.

🎧
Audio
Wireless Headphones
Premium sound with active noise cancellation and 30h battery.
Wearable
Smart Watch Pro
Health tracking, GPS, and AMOLED display in a slim design.
📸
Camera
Compact Camera
48MP sensor, optical zoom, and 4K video in your pocket.
Show code
vue
<template>
  <c-row>
    <c-col
      v-for="card in cards"
      :key="card.id"
      cols="12"
      sm="6"
      md="4"
    >
      <c-card>…</c-card>
    </c-col>
  </c-row>
</template>

Offset and order

cols="4" offset="4"
cols="3"
offset="6"
A order 3
B order 1
C order 2
Show code
vue
<template>
  <!-- Offset: center a 4-column block -->
  <c-row>
    <c-col cols="4" offset="4">Centered</c-col>
  </c-row>

  <!-- Order: visually reorder without touching DOM -->
  <c-row>
    <c-col cols="4" order="3">A — shown last</c-col>
    <c-col cols="4" order="1">B — shown first</c-col>
    <c-col cols="4" order="2">C — shown second</c-col>
  </c-row>
</template>

Props

PropTypeDefaultDescription
colsstring | numbernullColumn span (1–12)
offsetstring | numbernullLeft offset in columns
orderstring | numbernullVisual order (order CSS property)

Responsive props

For each breakpoint (xs, sm, md, lg, xl, xxl):

PropTypeDescription
xsxxlstring | numberColumn span from that breakpoint upward
offset-xsoffset-xxlstring | numberLeft offset from that breakpoint upward
order-xsorder-xxlstring | numberVisual order from that breakpoint upward

Breakpoint defaults: xs ≥ 0 px · sm ≥ 600 px · md ≥ 960 px · lg ≥ 1280 px · xl ≥ 1920 px · xxl ≥ 2560 px.

Slots

SlotDescription
defaultColumn content

See also