Skip to content
Facade UI
Colour mode
GitHub (opens in a new tab)
blockmotion

Feature grid (motion)

Feature grid whose cards arrive in sequence.

Wraps the static Feature grid, which renders identically with JavaScript disabled.

Preview

Open full width (opens in a new tab)
Preview width

Installation

Package manager
pnpm dlx shadcn@latest add https://facadeui.dev/r/feature-grid-motion.json

Pulls in feature-grid, motion-primitives. The CLI installs them for you.

Usage

The exact source of the preview above.

demos/feature-grid-motion.tsx
"use client"

/**
 * The `feature-grid` demo, with the motion variant swapped in.
 *
 * Identical props: the motion variant only changes which slot components
 * the static section renders through.
 *
 * `"use client"` is required here, not incidental: the motion variant is a
 * client component, and icon components cannot cross a server-to-client
 * boundary as props. See the note on `IconComponent`.
 */

import { FeatureGridMotion } from "@registry/sections/feature-grid-motion"

import { FEATURES } from "./content"

export function Demo() {
  return (
    <FeatureGridMotion
      eyebrow="Features"
      title="Everything a marketing page needs"
      description="Cards with an href become clickable through a stretched overlay, so the accessible name stays the title."
      items={FEATURES}
      columns={3}
    />
  )
}

Source

What the CLI copies into your project, byte for byte.

components/sections/feature-grid-motion.tsx
"use client"

/**
 * FeatureGridMotion — the feature grid with a staggered entrance.
 *
 * Dependencies: react, @/components/motion/slots,
 * @/components/sections/feature-grid.
 */

import { StaggerList, StaggerListItem } from "@/components/motion/slots"
import { FeatureGrid, type FeatureGridProps } from "@/components/sections/feature-grid"

export type FeatureGridMotionProps = Omit<FeatureGridProps, "listAs" | "itemAs">

export function FeatureGridMotion(props: FeatureGridMotionProps) {
  return <FeatureGrid {...props} listAs={StaggerList} itemAs={StaggerListItem} />
}

Props

FeatureGridMotionProps

Extends Omit<FeatureGridProps, "listAs" | "itemAs">.