# BentoGrid

> Grid of framed tiles, each a hairline frame around a softly top-lit panel, where an accent glow rises from below on hover while the content lifts and the call to action slides in, and the tiles fade up in a stagger the first time the grid scrolls into view.

- Package: `fancy-ui-vue` (Vue 3.5+ + Tailwind CSS v4)
- Category: Cards
- Tags: grid, layout, bento, cards, dashboard
- Types: `BentoGridProps`, `BentoGridItemProps`, `BentoGridCardProps`
- Docs: https://fancy-ui.rama.app/docs/components/bento-grid
- Source: https://github.com/RamaHerbin/fancy-ui/tree/main/vue/src/components/bento-grid

## Import

```vue
<script setup lang="ts">
import { BentoGrid } from 'fancy-ui-vue';
</script>
```

Setup (once per project): `npm install fancy-ui-vue`, then put these lines in your main CSS file (the stylesheet imports go right after `@import "tailwindcss";`):

```css
@import "tailwindcss";
@import "fancy-ui-vue/tailwind.css";
@import "fancy-ui-vue/styles.css";
```

Full guide: https://fancy-ui.rama.app/llms.txt

The names below are the ones to write in a Vue template; when one differs from the Svelte name, the Svelte name follows in parentheses. Snippets become named slots (`#default` is the default snippet), a prop the Vue port declares as a model is a `v-model:<name>` (except `ref`, exposed via `defineExpose({ ref })`: put a template ref on the component and read `.ref`) and callbacks are listeners (`onclick` is `@click`). Every component sets `inheritAttrs: false`: `class` is a declared prop, merged where the Svelte component applies it (not always the root element), and only when the props table below lists it; other attributes do not fall through unless the package README lists the component as forwarding native attributes. Divergences: https://github.com/RamaHerbin/fancy-ui/tree/main/vue#divergences-from-the-svelte-api

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `class` | `string` | `''` | Additional grid classes |
| `reveal` | `boolean` | `true` | Tiles fade up in a short stagger the first time the grid scrolls into view |
| `accent` | `string` | `undefined` | Colour of the hover glow, the lit bottom edge, the icon ring and the CTA arrow; writes --bento-accent (falls back to #8e9cff) |
| `BentoGridItem.class` | `string` | `""` | Additional classes for the tile |
| `BentoGridItem.#header` (Svelte `BentoGridItem.header`) | `Snippet` | — | Snippet rendered at the top of the tile, typically an image or visual |
| `BentoGridItem.#icon` (Svelte `BentoGridItem.icon`) | `Snippet` | — | Snippet for the tile's icon |
| `BentoGridItem.#title` (Svelte `BentoGridItem.title`) | `Snippet` | — | Snippet for the tile's title |
| `BentoGridItem.#description` (Svelte `BentoGridItem.description`) | `Snippet` | — | Snippet for the tile's description |
| `BentoGridCard.name` | `string` | — | Title of the card |
| `BentoGridCard.description` | `string` | — | Short text under the title |
| `BentoGridCard.href` | `string` | — | Link target of the call to action |
| `BentoGridCard.cta` | `string` | — | Label of the call to action |
| `BentoGridCard.class` | `string` | `""` | Additional classes for the card |
| `BentoGridCard.#icon` (Svelte `BentoGridCard.icon`) | `Snippet` | — | Snippet for the card's icon |
| `BentoGridCard.#background` (Svelte `BentoGridCard.background`) | `Snippet` | — | Snippet rendered behind the card's content |

## Slots

| Slot | Description |
| --- | --- |
| `#default` (Svelte `children`) | BentoGridItem components to arrange in the grid |

## Example

No Vue example is published for this component yet: start from the import above and the props table. The full examples are Svelte-only, on https://fancy-ui.rama.app/docs/components/bento-grid.md.
