Astro components BentoGrid
// BentoGrid

BentoGrid

Astro wrapper for the responsive 4/8/12-column .talos-grid mosaic, with an opt-in staggered entrance.

BentoGrid wraps the .talos-grid layout utility from talos-layout.css: a mosaic of 4 columns on a phone, 8 from md and 12 from lg. Children pick their span with col-span-N, md:col-span-N and lg:col-span-N. The stagger prop adds .bento-stagger, a staggered fade-in that needs talos-motion.css; it is off by default because motion in Talos encodes telemetry, not transitions.

Default

PREVIEW
span 4 / lg 6
span 4 / lg 6
full row
---
import BentoGrid from "@j_shelfwood/talos-ui/astro/BentoGrid.astro";
import GlassPanel from "@j_shelfwood/talos-ui/astro/GlassPanel.astro";
---
<BentoGrid stagger>
  <GlassPanel class="col-span-4 lg:col-span-6">…</GlassPanel>
  <GlassPanel class="col-span-4 lg:col-span-6">…</GlassPanel>
</BentoGrid>

Rendered markup: <div class="talos-grid"> (plus bento-stagger with stagger). The default slot is the grid’s content.

Props

PropTypeDefaultMeaning
staggerbooleanfalseadds .bento-stagger, the staggered blur and brightness entrance; needs talos-motion.css
classstringnoneextra classes, appended after talos-grid
...restHTMLAttributes<"div">noneforwarded to the <div>

Requires @j_shelfwood/talos-ui/talos-layout.css (in all.css).