Docs
Animation Features of Bento grid

Animation Features of Bento grid

Animation Features of Bento grid

Loading...

Installation

Install the following dependencies:

npm install framer-motion

Copy and paste the cn util code into your project.

import { ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
 
 
export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}
 

Copy and paste the Button code into your project.

The Bento Grid Button is in Button

Copy and paste the features code into your project.

API Reference

BentoGrid Props

PropTypeDescription
childrenReact.ReactNodeThe content of the BentoGrid.
classNamestringAdditional classes for the BentoGrid.

BentoCard Props

PropTypeDescription
classNamestringAdditional classes for the BentoCard.
titlestring | React.ReactNodeBentoCard title.
descriptionstring | React.ReactNodeBentoCard describtion.
headerReact.ReactNodeBentoCard header.
IconBentoCard icon.
hrefstringBentoCard href
ctastringBentoCard cta

Usage

 
export function BentoDemo() {
  return (
    <BentoGrid>
      {features.map((feature, idx) => (
        <BentoCard key={idx} {...feature} />
      ))}
    </BentoGrid>
  )
}