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.
Installation
The BentoGrid
and BentoCard
components provide a robust grid layout for building dynamic and interactive UI sections.
Quickly add the component using:
File Structure
Props
BentoGrid Props
Prop | Type | Default |
---|---|---|
children | ReactNode | - |
className | string | - |
BentoCard Props
Prop | Type | Default |
---|---|---|
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.
- Modify styles via the
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.