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
| Prop | Type | Default | What it does |
|---|---|---|---|
locale | 'en' | 'zh-CN' | 'es' | 'ja' | 'en' | Language of the built-in text and sample data. |
features | Array<{ 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 demos | The 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. |
schedule | Array<{ id, name, from, every: { summer, winter } }> | sample plants | Data of the built-in season demo. Plants in the reminders demo: the first day each is watered and the days between waterings per season. |
rooms | Array<{ id, name, value }> | sample rooms | Rooms in the humidity demo with their humidity in percent. |
journal | Array<{ id, date, note, leaves }> | sample entries | Journal entries; the drawn plant shows `leaves` leaves on each. |
season / distance | 'summer' | 'winter' / number | 'summer' / 1.5 | Where the season and light demos start. |
onExplore | (feature, value) => void | — | A visitor tried a demo: season, light, humidity or journal, with the value chosen. |
labels | object | — | Replaces any built-in text (keys as in copy.js). |
className | string | — | 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.
