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
| Prop | Type | Default | Meaning |
|---|---|---|---|
stagger | boolean | false | adds .bento-stagger, the staggered blur and brightness entrance; needs talos-motion.css |
class | string | none | extra classes, appended after talos-grid |
...rest | HTMLAttributes<"div"> | none | forwarded to the <div> |
Requires @j_shelfwood/talos-ui/talos-layout.css (in all.css).