Ask your notes

Answers in your own words, with the sources linked.

Weekly review

19 of 25 notes revisited.

Works offline

Write on a plane. It syncs when you land.

Writing streak

Seven days, 4,210 words.

Links that find themselves

Mention a person or a project and Meridian connects the note for you.

Yours to keep

Plain Markdown files.

Code

<!-- glass-bento.free.js: download it from the Install section below and host it with your site -->
<script src="/glass-bento.free.js" defer></script>

<glass-bento columns="3" gap="12" theme="light">
  <glass-cell span="2x1" data-visual="stream">
    <h3>Ask your notes</h3>
    <p>Answers in your own words, with the sources linked.</p>
  </glass-cell>
  <glass-cell span="1x2" data-visual="ring" data-value="76">
    <h3>Weekly review</h3>
    <p>19 of 25 notes revisited.</p>
  </glass-cell>
  <glass-cell>
    <h3>Works offline</h3>
    <p>Write on a plane. It syncs when you land.</p>
  </glass-cell>
  <glass-cell data-visual="bars">
    <h3>Writing streak</h3>
    <p>Seven days, 4,210 words.</p>
  </glass-cell>
  <glass-cell span="2x1">
    <h3>Links that find themselves</h3>
    <p>Mention a person or a project and Meridian connects the note.</p>
  </glass-cell>
  <glass-cell>
    <h3>Yours to keep</h3>
    <p>Plain Markdown files.</p>
  </glass-cell>
</glass-bento>

In context

Writing streak

Seven days, 4,210 words.

A single cell with the bars

Ask your notes

Answers with the sources linked.

Mint, typing your own lines Pro

Install · Free Web Component

One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.

1. Install with one command — or download the file
shadcn CLI · React
npx shadcn@latest add https://www.ui-design.co/r/glass-bento.json
2. Load it and use the element
HTML
<!-- glass-bento.free.js: download it from the Install section below and host it with your site -->
<script src="/glass-bento.free.js" defer></script>

<glass-bento columns="3" gap="12" theme="light">
  <glass-cell span="2x1" data-visual="stream">
    <h3>Ask your notes</h3>
    <p>Answers in your own words, with the sources linked.</p>
  </glass-cell>
  <glass-cell span="1x2" data-visual="ring" data-value="76">
    <h3>Weekly review</h3>
    <p>19 of 25 notes revisited.</p>
  </glass-cell>
  <glass-cell>
    <h3>Works offline</h3>
    <p>Write on a plane. It syncs when you land.</p>
  </glass-cell>
  <glass-cell data-visual="bars">
    <h3>Writing streak</h3>
    <p>Seven days, 4,210 words.</p>
  </glass-cell>
  <glass-cell span="2x1">
    <h3>Links that find themselves</h3>
    <p>Mention a person or a project and Meridian connects the note.</p>
  </glass-cell>
  <glass-cell>
    <h3>Yours to keep</h3>
    <p>Plain Markdown files.</p>
  </glass-cell>
</glass-bento>
3. React + TypeScript (optional)

The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:

TypeScript
// glass-bento.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    'glass-bento': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
      columns?: number | string;
      gap?: number | string;
      width?: number | string;
      theme?: 'light' | 'dark';
    };
  }
}

// glass-cell.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    'glass-cell': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
      span?: string;
      'data-visual'?: 'bars' | 'ring' | 'stream';
      'data-value'?: number | string;
      'data-lines'?: string;
    };
  }
}

Pro · React + TypeScript Pro

One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.

  • React components — GlassBento and GlassBentoCell — with TypeScript types and the full source; a cell takes any React content and can be a link
  • Sunset, Mint and Mono tints, plus custom tints from Brand Fit
  • The vanilla Web Component with every tint, a demo page, README and license

Attributes & props

NameTypeDefaultDescription
<glass-cell> children—One child per cell (four to six reads best). Its content — a heading and a line of text, or anything else — sits at the bottom of the glass.
span (on a cell) "<columns>x<rows>""1x1"How many columns and rows the cell covers, e.g. "2x1" or "1x2". Spans are clamped when fewer columns fit.
data-visual (on a cell) 'bars' | 'ring' | 'stream'—A small live visual above the content: a moving bar chart, a progress ring that fills (data-value, 0–100) or lines of text typing themselves (data-lines="first|second|third").
columns number3Columns at full width, 2 to 6. Containers under 620px get two at most; under 480px the grid is one column.
gap number (px)12Space between cells.
width number (px) | CSS width1100Maximum width of the grid; it always fills its container up to this.
theme 'light' | 'dark''light'Light or dark glass.
tint Pro'aurora' | 'sunset' | 'mint' | 'mono' | object'aurora'Colours of the scene behind the glass, the pointer light and the visuals, or a custom tint. Free build ships Aurora only.

The grid measures its own container (not the window), so it behaves the same in a sidebar and full width; a wide, low cell puts its visual beside the text. The light is one point shared by every cell, eased toward the pointer; el.point(x, y) places it yourself (fractions of the grid, null turns it off) — handy for a guided tour. Cells reveal once, in a wave from the top-left corner, when an eighth of the grid is on screen; reduced motion shows them at once and stops the visuals. The scene, the bars and the typing all pause while the grid is off screen or the tab is hidden. The visuals are decorative and hidden from screen readers — put the real message in the cell text. After adding or removing cells from script, call el.refresh().

More components