A heading over five text tiles: a wide and a narrow tile on top, three even tiles below.
bento, features, grid, tiles
npx shadcn@latest add https://ner.sh/r/bento-grid-five.json{
"registries": {
"@nertia": "https://ner.sh/r/{name}.json"
}
}npx shadcn@latest add @nertia/bento-grid-fivenpm create nersh@latest my-site -- --site https://nertia.ai/components/bento-grids/bento-grid-five/site.json scaffolds a project from it.{
"slug": "bento-grid-five",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "bento-grid-five",
"sections": [
{
"id": "layout-section",
"instanceId": "bento5-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "bento5-intro-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "bento5-heading-r1"
},
{
"id": "block-text",
"instanceId": "bento5-sub-r1"
}
]
},
{
"id": "layout-container",
"instanceId": "bento5-grid-r1",
"layout": "grid-3",
"children": [
{
"id": "layout-column",
"instanceId": "bento5-col-1-r1",
"span": 8,
"children": [
{
"id": "block-card",
"instanceId": "bento5-tile-1-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "bento5-col-2-r1",
"span": 4,
"children": [
{
"id": "block-card",
"instanceId": "bento5-tile-2-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "bento5-col-3-r1",
"span": 4,
"children": [
{
"id": "block-card",
"instanceId": "bento5-tile-3-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "bento5-col-4-r1",
"span": 4,
"children": [
{
"id": "block-card",
"instanceId": "bento5-tile-4-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "bento5-col-5-r1",
"span": 4,
"children": [
{
"id": "block-card",
"instanceId": "bento5-tile-5-r1"
}
]
}
]
}
],
"component": "bento-grid-five@1"
}
]
},
"copy": {
"bento5-band-r1.coverImage": "",
"bento5-band-r1.coverStyle": "",
"bento5-band-r1.coverScrim": "",
"bento5-band-r1.anchor": "",
"bento5-band-r1.navLabel": "",
"bento5-band-r1.navHref": "",
"bento5-band-r1.navSkip": "",
"bento5-band-r1.landmark": "",
"bento5-band-r1.tone": "",
"bento5-band-r1.gutter": "",
"bento5-band-r1.shape": "",
"bento5-band-r1.padding": "",
"bento5-band-r1.sticky": "",
"bento5-band-r1.reveal": "",
"bento5-band-r1.dismissible": "",
"bento5-band-r1.width": "",
"bento5-band-r1.gradient": "",
"bento5-intro-r1.align": "",
"bento5-intro-r1.phone": "",
"bento5-heading-r1.text": "Everything in one place",
"bento5-heading-r1.level": "h2",
"bento5-sub-r1.text": "One sentence that introduces this section.",
"bento5-sub-r1.textStyle": "",
"bento5-grid-r1.align": "",
"bento5-grid-r1.phone": "",
"bento5-col-1-r1.pad": "",
"bento5-col-1-r1.sticky": "",
"bento5-tile-1-r1.title": "Tile one",
"bento5-tile-1-r1.body": "A sentence or two on this point.",
"bento5-tile-1-r1.href": "",
"bento5-tile-1-r1.emphasis": "true",
"bento5-tile-1-r1.density": "",
"bento5-tile-1-r1.align": "",
"bento5-tile-1-r1.icon": "",
"bento5-col-2-r1.pad": "",
"bento5-col-2-r1.sticky": "",
"bento5-tile-2-r1.title": "Tile two",
"bento5-tile-2-r1.body": "A sentence or two on this point.",
"bento5-tile-2-r1.href": "",
"bento5-tile-2-r1.emphasis": "",
"bento5-tile-2-r1.density": "",
"bento5-tile-2-r1.align": "",
"bento5-tile-2-r1.icon": "",
"bento5-col-3-r1.pad": "",
"bento5-col-3-r1.sticky": "",
"bento5-tile-3-r1.title": "Tile three",
"bento5-tile-3-r1.body": "A sentence or two on this point.",
"bento5-tile-3-r1.href": "",
"bento5-tile-3-r1.emphasis": "",
"bento5-tile-3-r1.density": "",
"bento5-tile-3-r1.align": "",
"bento5-tile-3-r1.icon": "",
"bento5-col-4-r1.pad": "",
"bento5-col-4-r1.sticky": "",
"bento5-tile-4-r1.title": "Tile four",
"bento5-tile-4-r1.body": "A sentence or two on this point.",
"bento5-tile-4-r1.href": "",
"bento5-tile-4-r1.emphasis": "",
"bento5-tile-4-r1.density": "",
"bento5-tile-4-r1.align": "",
"bento5-tile-4-r1.icon": "",
"bento5-col-5-r1.pad": "",
"bento5-col-5-r1.sticky": "",
"bento5-tile-5-r1.title": "Tile five",
"bento5-tile-5-r1.body": "A sentence or two on this point.",
"bento5-tile-5-r1.href": "",
"bento5-tile-5-r1.emphasis": "",
"bento5-tile-5-r1.density": "",
"bento5-tile-5-r1.align": "",
"bento5-tile-5-r1.icon": ""
}
}
{
"slug": "bento-grid-five",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "bento-grid-five",
"sections": [
{
"id": "layout-section",
"instanceId": "bento5-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "bento5-intro-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "bento5-heading-r1"
},
{
"id": "block-text",
"instanceId": "bento5-sub-r1"
}
]
},
{
"id": "layout-container",
"instanceId": "bento5-grid-r1",
"layout": "grid-3",
"children": [
{
"id": "layout-column",
"instanceId": "bento5-col-1-r1",
"span": 8,
"children": [
{
"id": "block-card",
"instanceId": "bento5-tile-1-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "bento5-col-2-r1",
"span": 4,
"children": [
{
"id": "block-card",
"instanceId": "bento5-tile-2-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "bento5-col-3-r1",
"span": 4,
"children": [
{
"id": "block-card",
"instanceId": "bento5-tile-3-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "bento5-col-4-r1",
"span": 4,
"children": [
{
"id": "block-card",
"instanceId": "bento5-tile-4-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "bento5-col-5-r1",
"span": 4,
"children": [
{
"id": "block-card",
"instanceId": "bento5-tile-5-r1"
}
]
}
]
}
],
"component": "bento-grid-five@1"
}
]
},
"copy": {
"bento5-band-r1.coverImage": "",
"bento5-band-r1.coverStyle": "",
"bento5-band-r1.coverScrim": "",
"bento5-band-r1.anchor": "",
"bento5-band-r1.navLabel": "",
"bento5-band-r1.navHref": "",
"bento5-band-r1.navSkip": "",
"bento5-band-r1.landmark": "",
"bento5-band-r1.tone": "",
"bento5-band-r1.gutter": "",
"bento5-band-r1.shape": "",
"bento5-band-r1.padding": "",
"bento5-band-r1.sticky": "",
"bento5-band-r1.reveal": "",
"bento5-band-r1.dismissible": "",
"bento5-band-r1.width": "",
"bento5-band-r1.gradient": "",
"bento5-intro-r1.align": "",
"bento5-intro-r1.phone": "",
"bento5-heading-r1.text": "Everything in one place",
"bento5-heading-r1.level": "h2",
"bento5-sub-r1.text": "One sentence that introduces this section.",
"bento5-sub-r1.textStyle": "",
"bento5-grid-r1.align": "",
"bento5-grid-r1.phone": "",
"bento5-col-1-r1.pad": "",
"bento5-col-1-r1.sticky": "",
"bento5-tile-1-r1.title": "Tile one",
"bento5-tile-1-r1.body": "A sentence or two on this point.",
"bento5-tile-1-r1.href": "",
"bento5-tile-1-r1.emphasis": "true",
"bento5-tile-1-r1.density": "",
"bento5-tile-1-r1.align": "",
"bento5-tile-1-r1.icon": "",
"bento5-col-2-r1.pad": "",
"bento5-col-2-r1.sticky": "",
"bento5-tile-2-r1.title": "Tile two",
"bento5-tile-2-r1.body": "A sentence or two on this point.",
"bento5-tile-2-r1.href": "",
"bento5-tile-2-r1.emphasis": "",
"bento5-tile-2-r1.density": "",
"bento5-tile-2-r1.align": "",
"bento5-tile-2-r1.icon": "",
"bento5-col-3-r1.pad": "",
"bento5-col-3-r1.sticky": "",
"bento5-tile-3-r1.title": "Tile three",
"bento5-tile-3-r1.body": "A sentence or two on this point.",
"bento5-tile-3-r1.href": "",
"bento5-tile-3-r1.emphasis": "",
"bento5-tile-3-r1.density": "",
"bento5-tile-3-r1.align": "",
"bento5-tile-3-r1.icon": "",
"bento5-col-4-r1.pad": "",
"bento5-col-4-r1.sticky": "",
"bento5-tile-4-r1.title": "Tile four",
"bento5-tile-4-r1.body": "A sentence or two on this point.",
"bento5-tile-4-r1.href": "",
"bento5-tile-4-r1.emphasis": "",
"bento5-tile-4-r1.density": "",
"bento5-tile-4-r1.align": "",
"bento5-tile-4-r1.icon": "",
"bento5-col-5-r1.pad": "",
"bento5-col-5-r1.sticky": "",
"bento5-tile-5-r1.title": "Tile five",
"bento5-tile-5-r1.body": "A sentence or two on this point.",
"bento5-tile-5-r1.href": "",
"bento5-tile-5-r1.emphasis": "",
"bento5-tile-5-r1.density": "",
"bento5-tile-5-r1.align": "",
"bento5-tile-5-r1.icon": ""
},
"ds": {}
}
import type { SectionRegistry } from '@nersh/render';
import { Component as BlockCard } from '@/sections/block-card/Component';
import { Component as BlockHeading } from '@/sections/block-heading/Component';
import { Component as BlockText } from '@/sections/block-text/Component';
import { Component as LayoutColumn } from '@/sections/layout-column/Component';
import { Component as LayoutContainer } from '@/sections/layout-container/Component';
import { Component as LayoutSection } from '@/sections/layout-section/Component';
export const registry: SectionRegistry = {
'block-card': BlockCard,
'block-heading': BlockHeading,
'block-text': BlockText,
'layout-column': LayoutColumn,
'layout-container': LayoutContainer,
'layout-section': LayoutSection,
};
"use client";
import { SiteRenderer } from "@nersh/render";
import { registry } from "./bento-grid-five.registry";
import siteJson from "./bento-grid-five.site.json";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const site = siteJson as any;
export default function BentoGridFive() {
return <SiteRenderer site={site} registry={registry} />;
}