X Enterprises
nuxt-x-cards

Card Grid

Responsive CSS grid wrapper for card collections with configurable columns and gap.

Card Grid

The XCardGrid component is a lightweight CSS grid wrapper. Place any card components inside its default slot. Column breakpoints follow a mobile-first pattern: always 1 column on mobile, then expanding at md and lg. Pair with XCardFeature (or any other card) for collections.

Components

<XCardGrid />

<XCardGrid :columns="3" gap="md">
  <XCardFeature
    v-for="item in features"
    :key="item.title"
    :title="item.title"
    :description="item.description"
    :icon="item.icon"
  />
</XCardGrid>

Props

PropTypeDefaultDescription
columns1 | 2 | 3 | 43Maximum number of columns at the largest breakpoint
gap'sm' | 'md' | 'lg''md'Gap between grid items

Gap reference (4px grid):

ValueMobileDesktop
sm16px16px
md24px32px
lg32px48px

Column breakpoint reference:

columnsMobilemdlg
11 col1 col1 col
21 col2 col2 col
31 col2 col3 col
41 col2 col4 col

Slots

SlotDescription
defaultCard components to render in the grid

AI Context

component: XCardGrid
package: "@xenterprises/nuxt-x-cards"
category: FeatureCards
use-when: >
  Use XCardGrid as the outer container for any XCard component collection.
  It is a generic slot-based wrapper that works with any XCard component,
  not just XCardFeature.
notes:
  - Always 1 column on mobile, expanding at md and lg breakpoints
Copyright © 2026