Feature bento
A varied four-panel feature composition with room for one hero statement and supporting details.
Live preview
Adjust a setting to update the preview and usage code together.
Usage & source
import type { CSSProperties } from "react";
import { FeatureBento } from "./components/stepkit/FeatureBento";
import "./components/stepkit/styles.css";
const themeStyle = {"--stepkit-bg":"#f7f7f8","--stepkit-surface":"#ffffff","--stepkit-surface-muted":"#f0f0f3","--stepkit-fg":"#17181c","--stepkit-muted":"#626572","--stepkit-border":"#e3e4e9","--stepkit-border-strong":"#c8cad3","--stepkit-code":"#f1f1f4","--stepkit-shadow":"0 20px 60px rgba(31, 26, 64, .10)","--stepkit-accent":"#6950df","--stepkit-accent-strong":"#5137c7","--stepkit-accent-soft":"#eeeafd","--stepkit-accent-on-soft":"#5137c7","--stepkit-accent-text":"#ffffff","--stepkit-error":"#b43145","--stepkit-placeholder":"#626572","--stepkit-radius":"16px","--stepkit-space":"16px","--stepkit-control-height":"44px","--stepkit-font-sans":"Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif"} as CSSProperties;
export default function Example() {
return (
<div className="stepkit-theme" data-stepkit-preset="modern" style={themeStyle}>
<FeatureBento
/>
</div>
);
}Dependencies
[email protected] [email protected]
/*
* Stepkit 0.2.0
* Copyright (c) 2026 Vladislav Stepanov
*
* Original Stepkit portions in this release are licensed under the MIT License. Adapted portions identify their upstream licence and copyright in the copied source and in `NOTICE-MAGICUI.md` where applicable.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
*/
import type { ReactNode } from "react";
import "./styles.css";
export interface FeatureBentoItem { title: string; body: string; metric?: string; visual?: ReactNode; }
export interface FeatureBentoProps { items?: FeatureBentoItem[]; className?: string; }
const defaults: FeatureBentoItem[] = [
{ title: "One system, many surfaces", body: "Compose a visual language that stays recognisable as the product grows.", metric: "30" },
{ title: "Tokens that travel", body: "Light, dark, accent, radius and density move with the component." },
{ title: "Motion with intent", body: "Small responses show where to look and what to do next." },
{ title: "Ready to adapt", body: "Bring the source into your own React project." }
];
export function FeatureBento({ items = defaults, className = "" }: FeatureBentoProps) { return <section className={`stepkit stepkit-feature-bento${className ? ` ${className}` : ""}`} aria-label="Feature overview">{items.slice(0, 4).map((item, index) => <article className="stepkit-feature-bento__item" key={`${item.title}-${index}`}><span className="stepkit-feature-bento__glow" aria-hidden="true" />{item.visual}<h3 className="stepkit-feature-bento__title">{item.title}</h3><p className="stepkit-feature-bento__body">{item.body}</p>{item.metric ? <strong className="stepkit-feature-bento__metric">{item.metric}</strong> : null}</article>)}</section>; }
export default FeatureBento;
components/FeatureBento.tsxcomponents/styles.cssInstall
Use the released registry entry or download the complete archive.
npx [email protected] add https://vstepanov.com/stepkit/r/feature-bento.jsonIntegration prompt
Install Stepkit Feature bento 0.2.0 from the registry and preserve the included MIT notice. npx [email protected] add https://vstepanov.com/stepkit/v0.2.0/r/feature-bento.json Install the tested runtime dependencies exactly: npm install [email protected] [email protected] Keep the component source, shared styles, NOTICE.md, and provenance files together. Apply the theme tokens on a wrapper rather than passing theme keys as component props. Usage: ```tsx import type { CSSProperties } from "react"; import { FeatureBento } from "./components/stepkit/FeatureBento"; import "./components/stepkit/styles.css"; const themeStyle = {"--stepkit-bg":"#f7f7f8","--stepkit-surface":"#ffffff","--stepkit-surface-muted":"#f0f0f3","--stepkit-fg":"#17181c","--stepkit-muted":"#626572","--stepkit-border":"#e3e4e9","--stepkit-border-strong":"#c8cad3","--stepkit-code":"#f1f1f4","--stepkit-shadow":"0 20px 60px rgba(31, 26, 64, .10)","--stepkit-accent":"#6950df","--stepkit-accent-strong":"#5137c7","--stepkit-accent-soft":"#eeeafd","--stepkit-accent-on-soft":"#5137c7","--stepkit-accent-text":"#ffffff","--stepkit-error":"#b43145","--stepkit-placeholder":"#626572","--stepkit-radius":"16px","--stepkit-space":"16px","--stepkit-control-height":"44px","--stepkit-font-sans":"Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif"} as CSSProperties; export default function Example() { return ( <div className="stepkit-theme" data-stepkit-preset="modern" style={themeStyle}> <FeatureBento /> </div> ); } ``` Selected bounded settings: {}. Selected theme: {"mode":"light","accent":"violet","radius":"soft","density":"comfortable","preset":"modern"}.
Props
| Name | Type | Default | Description |
|---|---|---|---|
items | FeatureBentoItem[] | default items | Up to four content panels. |
className | string | undefined | Additional class name. |
Accessibility & limits
- Each panel is a native article with readable headings.
- The visual glow is decorative.
Limitations
- The layout intentionally supports four panels for a coherent composition.
Provenance
Original source under the MIT licence.
Original Stepkit implementation.
Required notices: NOTICE.md, PROVENANCE-stepkit-feature-bento.md
- 2 source files in the release
- Version 0.2.0