8
Components

Bento Grid and Cards

Flexible and interactive grid layout for showcasing features, actions, or content dynamically.

Preview

Bento Grid Demo

Code Snippet 1

Reusable utility function for data transformation.

Code Snippet 2

Custom hook for fetching API data efficiently.

Code Snippet 3

Predefined TailwindCSS classes for UI components.

Code Snippet 1

Reusable utility function for data transformation.

Code Snippet 2

Custom hook for fetching API data efficiently.

Code Snippet 3

Predefined TailwindCSS classes for UI components.

Code Snippet 1

Reusable utility function for data transformation.

Code Snippet 2

Custom hook for fetching API data efficiently.

Code Snippet 3

Predefined TailwindCSS classes for UI components.

Code Snippet 1

Reusable utility function for data transformation.

Code Snippet 2

Custom hook for fetching API data efficiently.

Code Snippet 3

Predefined TailwindCSS classes for UI components.

Accessible

Access a vast collection of accessiable reusable code snippets.

Documentation preview

Documentation

Comprehensive guides and API references.

API preview

API Management

Simplify your workflow with integrated APIs.

Analytics preview

Analytics

Visualize data insights and trends in real-time.

Collaboration preview

Collaboration

Discuss and share ideas with your team seamlessly.


Installation

The BentoGrid and BentoCard components provide a robust grid layout for building dynamic and interactive UI sections.

Quickly add the component using:

npx axionjs-ui add bento

File Structure

bento.tsx

Props

BentoGrid Props

PropTypeDefault
children
ReactNode
-
className
string
-

BentoCard Props

PropTypeDefault
name
string
-
className
string
-
background
ReactNode
-
Icon
React.ElementType
-
description
string
-
href
string
-
cta
string
-

Features

  • Interactive Grid:
    • Configurable grid layout with custom row and column spans.
  • Dynamic Cards:
    • Cards with hover effects, call-to-actions, and icons.
  • Customizable Styling:
    • Modify styles via the className prop.

Accessibility

The BentoCard and BentoGrid components ensure accessibility with ARIA attributes, focus states, and semantic elements.


Conclusion

The BentoGrid and BentoCard components are perfect for showcasing features, content, or actions in a structured and visually appealing layout.

On this page