# Bento Live

> A React bento feature grid where each tile runs a live demo: a rolling MRR counter, a typed AI answer, ranked alerts and an orbiting integrations ring.

- Kind: Block (Landing pages)
- Docs: https://ui.minidev.pro/docs/bento-live
- Source (registry JSON with the full file): https://ui.minidev.pro/r/bento-live.json
- License: MIT. One file, yours to edit after install.

## When to use

Use as the main "features" section of a landing page, with 4–6 tiles on a 6-column grid. Live tiles only tick while on screen and sit still under reduced motion. Tiles rise in once as the grid enters view and lift on hover. For a text-only grid use FeatureGrid; for a premium animated bento use FeatureBentoMotion.

## Installation

### shadcn CLI (copies the source into your project)

```bash
npx shadcn@latest add @minidev/bento-live
```

Writes `components/ui/bento-live.tsx` plus the MiniDev files it is built from (number-roll) and installs its npm dependencies. Older CLI versions: `npx shadcn@latest add https://ui.minidev.pro/r/bento-live.json`.

### npm package

```bash
npm i minidev-ui-kit lucide-react motion
```

Add the tokens to your global stylesheet once:

```css
@import "tailwindcss";
@import "minidev-ui-kit/styles.css";
@source "../node_modules/minidev-ui-kit";
```

Next.js also needs `transpilePackages: ["minidev-ui-kit"]` in next.config.

## Import

After the shadcn install:

```tsx
import { BentoLive } from "@/components/ui/bento-live"
```

From the npm package:

```tsx
import { BentoLive } from "minidev-ui-kit/blocks/bento-live"
```

## Usage

```tsx
import { BentoLive } from "@/components/ui/bento-live"

export function Example() {
  return (
    <BentoLive />
  )
}
```

## Props

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `eyebrow` | `string` | `"Product"` | no | Small mono label above the title. Empty string hides it. |
| `title` | `React.ReactNode` | `"Everything your finance team checks,...` | no | Section heading (rendered as h2). |
| `description` | `React.ReactNode` | - | no |  |
| `items` | `BentoItem[]` | `DEFAULT_ITEMS` | no | Tiles in order. Defaults to five live Lumen tiles. |
| `className` | `string` | - | no |  |

## Accessibility

- The section is labelled by its `<h2>` via `aria-labelledby`; each tile is an `<article>` with an `<h3>` title.
- The typed chat answer is `aria-hidden`; a visually hidden line gives screen readers the full question and answer at once.
- The live MRR figure uses [`NumberRoll`](https://ui.minidev.pro/docs/number-roll), which hides the rolling digits and exposes the formatted value as text.
- With reduced motion, tiles render in place without the rise, the hover lift is off, the MRR figure stops ticking, the answer shows in full and the orbit stops.

## FAQ

### How do I put my own live widget in a tile?

Pass any React node as `visual` on an item. To match the built-in tiles, start its timer only while it is on screen (`useInView` from `motion/react`) and skip it when `useReducedMotion()` is true; the default `LiveMetric` tile does exactly that.

### Do the live tiles keep running when they are off screen?

No. The ticking MRR figure and the typed answer only run while their tile is in view, and the typed answer restarts each time it scrolls back in. The orbiting source names are a CSS animation that runs all the time unless the visitor prefers reduced motion.

### How is BentoLive different from BentoGrid?

[`BentoGrid`](https://ui.minidev.pro/docs/bento-grid) is static and server-rendered: icon, title and copy per tile. BentoLive is a client component with a section heading, tiles that rise in on scroll and lift on hover, and a demo area at the top of each tile.

## Rules for generating code

- Use semantic tokens only (bg, surface, sunken, border, fg, fg-muted, fg-subtle, ink, accent, success, warning, danger). Never raw hex or palette steps like blue-500.
- Shadows only from the set: shadow-xs, shadow-sm, shadow-raised, shadow-md, shadow-lg, shadow-overlay.
- Numbers use tabular-nums. Dark mode is the `dark` class on <html>; components never branch on theme.

## Dependencies

- npm: `lucide-react`, `motion`
- Built from: [number-roll](https://ui.minidev.pro/docs/number-roll/md)

## Related

- [Feature Grid](https://ui.minidev.pro/docs/feature-grid/md): A responsive grid of feature cards, one to three columns wide, each with an optional icon, a title and a short description. Built with React and Tailwind.
- [Feature Bento Motion](https://ui.minidev.pro/docs/feature-bento-motion/md): A four cell Tailwind bento grid of feature cards that rise in with a stagger and lift slightly on hover, alternating wide and narrow tiles across rows.
- [Marketing Landing](https://ui.minidev.pro/docs/marketing-landing/md): A complete Tailwind landing page assembled from a hero with two actions, a logo cloud, a stats strip, a three column feature grid and a closing CTA banner.
- [Scroll Story](https://ui.minidev.pro/docs/scroll-story/md): A scrollytelling section: steps scroll on one side while a pinned visual swaps as each reaches mid screen and a progress rail fills. Inline on mobile.
- [Changelog Page](https://ui.minidev.pro/docs/changelog-page/md): A Tailwind changelog card listing releases with a monospace version, tag badge, date, title and summary, separated by hairline dividers.
- [Cta Band](https://ui.minidev.pro/docs/cta-band/md): A closing CTA section with a large lit headline and an inline email form whose button animates from idle to sending to a success check. Async onSubmit.

---

All 557 components: https://ui.minidev.pro/llms.txt (full text: https://ui.minidev.pro/llms-full.txt).
