Bento Grid

Bento grid is a layout used to showcase the features of a product in a simple and elegant way.

@lucide/svelte
demo

Save your files

We automatically save your files as you type.

demo

Full text search

Search through all your files in one place.

demo

Multilingual

Supports 100+ languages and counting.

demo

Calendar

Use the calendar to filter your files by date.

demo

Notifications

Get notified when someone shares a file or mentions you in a comment.

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/bento-grid.json

Usage

<script lang="ts">	import BoxIcon from "@lucide/svelte/icons/box";	import { BentoCard, BentoGrid } from "#lib/components/magic/bento-grid/index.js";</script>
{#snippet background()}	<div class="absolute inset-0 bg-muted"></div>{/snippet}
<BentoGrid>	<BentoCard		name="Analytics"		description="Track your most important metrics."		href="/analytics"		cta="View analytics"		Icon={BoxIcon}		{background}	/></BentoGrid>

Props

Bento Grid

Bento grid component

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply
childrenSnippetThe content to be displayed inside the grid

Bento Card

NameTypeDefaultDescription
namestringThe name of the card, displayed as the title
classClassValue""Additional CSS classes to apply
backgroundSnippetThe background of the card, can be a color or an image
IconComponent<any>The icon to be displayed on the card, passed as a Svelte component
iconClassstring""
descriptionstringA brief description of the card's content
hrefstringThe URL to navigate to when the card is clicked
ctastringThe call-to-action text displayed on the card