Skip to content
English
Feature grid comes with Pro. Its preview shows once you unlock it.

Usage

import { LandingFeatures } from './LandingFeatures.jsx'

// Your own features: each tile is data; `demo` is any element (or a function of the feature),
// and a tile without one lists its points. Tones: 'accent' | 'secondary' | 'tertiary'.
<LandingFeatures
  locale="en"
  labels={{ title: 'Brew better coffee', titleQuiet: ' cup after cup.' }}
  features={[
    { id: 'log', icon: 'cup', title: 'Log every brew', text: 'Dose, grind and time in one tap.', points: ['Recipes saved', 'Timer built in'] },
    { id: 'taste', icon: 'star', tone: 'tertiary', title: 'Rate the taste', text: 'See what changed.', demo: <TasteChart /> },
  ]}
/>

// Or keep the four built-in demos of the sample app and feed them your numbers:
<LandingFeatures
  locale="en"
  schedule={plants}            // [{ id, name, from, every: { summer, winter } }]
  rooms={rooms}                // [{ id, name, value }]  humidity in %
  journal={entries}            // [{ id, date, note, leaves }]
  onExplore={(feature, value) => track('feature-demo', { feature, value })}
/>

Props

PropTypeDefaultWhat it does
locale'en' | 'zh-CN' | 'es' | 'ja''en'Language of the built-in text and sample data.
featuresArray<{ id, icon?, title, text, tone?: 'accent' | 'secondary' | 'tertiary', span?: 2 | 3 | 4 | 6, demo?: ReactNode | (feature) => ReactNode | 'season' | 'light' | 'humidity' | 'journal', points?: string[] }>the four sample demosThe tiles. `demo` is your own element, or the name of a built-in demo; a tile without one lists its `points`. `span` is its width in a six-column row (chosen by count when left out). `icon` is a kit icon name.
scheduleArray<{ id, name, from, every: { summer, winter } }>sample plantsData of the built-in season demo. Plants in the reminders demo: the first day each is watered and the days between waterings per season.
roomsArray<{ id, name, value }>sample roomsRooms in the humidity demo with their humidity in percent.
journalArray<{ id, date, note, leaves }>sample entriesJournal entries; the drawn plant shows `leaves` leaves on each.
season / distance'summer' | 'winter' / number'summer' / 1.5Where the season and light demos start.
onExplore(feature, value) => void—A visitor tried a demo: season, light, humidity or journal, with the value chosen.
labelsobject—Replaces any built-in text (keys as in copy.js).
classNamestring—Added to the root section.

Add it to your project

Pro includes the full source of this block. Copy its prompt to install it with your coding agent.

LandingFeatures.jsxlanding-features.csscopy.jskit.jsxkit.cssui/rolling-number/ui/range-slider/ui/progress-ring/ui/sliding-tabs/tokens.cssREADME.md

The block, its stylesheet and text, the shared kit, the components it uses and tokens.css install together into one folder.