X Enterprises
Feature Cards

Grid

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

Feature Cards

XCardFeature and XCardGrid are designed to work together. Use XCardGrid as the outer container to control column count and spacing, then place XCardFeature (or any other card) inside the default slot.

Components

<XCardGrid />

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.

<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

category: FeatureCards
package: "@xenterprises/nuxt-x-cards"
components:
  - XCardGrid
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