Skip to content

Bento grid

Tile sizes come from a named arrangement, so content editors pick a pattern and never set spans by hand. On small screens tiles stack; at tablet width the first tile runs full width over a two column grid.

Platform

Why teams choose Samla

  • One source of markup

    Write markup once and reuse it across every page.

  • Tokens

    Colour, type and space in one small file.

  • Accessible

    Focus, contrast and motion handled for you.

  • Fast

    Static output with almost no JavaScript.

  • Flexible layouts

    Sections adapt from phones to wide screens.

  • Yours to extend

    Copy a piece into your site and make it your own.

  • eyebrow, title, intro: optional section header. Without title, tile titles become h2
  • tiles: four to six { title, text?, image?, imageAlt?, href?, surface? }. Extra tiles are dropped
  • layout: the preset arrangement at desktop width (four columns)
    • mosaic (default): [1 1 2 2] [1 1 3 4] [5 5 6 6]
    • spotlight: [1 1 2 3] [1 1 4 5], a sixth tile runs full width
    • stripes: [1 1 1 2] [3 4 4 4] [5 5 6 6]
  • tile surface: light, alternate, brand, dark per tile
  • tile href: makes the whole tile one link
  • surface: the band’s surface
<Bento
title="Why teams choose Samla"
layout="mosaic"
tiles={[
{ title: "One source of truth", text: "Write markup once.", image: "/images/code.jpg" },
{ title: "Tokens", text: "One small file.", surface: "brand" },
{ title: "Accessible", text: "Built in." },
{ title: "Fast", text: "Static output.", surface: "dark" },
]}
/>
layout="spotlight" (five tiles)

Everything included

  • One source of markup

    Write markup once and reuse it across every page.

  • Tokens

    Colour, type and space in one small file.

  • Accessible

    Focus, contrast and motion handled for you.

  • Fast

    Static output with almost no JavaScript.

  • Yours to extend

    Copy a piece into your site and make it your own.

layout="stripes" surface="alternate"
  • One source of markup

    Write markup once and reuse it across every page.

  • Accessible

    Focus, contrast and motion handled for you.

  • Tokens

    Colour, type and space in one small file.

  • Flexible layouts

    Sections adapt from phones to wide screens.

  • Fast

    Static output with almost no JavaScript.

  • Yours to extend

    Copy a piece into your site and make it your own.

layout="mosaic" (four tiles) surface="dark"

Small but complete

  • One source of markup

    Write markup once and reuse it across every page.

  • Tokens

    Colour, type and space in one small file.

  • Accessible

    Focus, contrast and motion handled for you.

  • Fast

    Static output with almost no JavaScript.