Layout & Surfaces CSS Grid Responsive Layout Asymmetric Spans Tailwind v4

Bento Grid

Modern modular 12-column asymmetric bento box layout with spotlight card glow, metric widgets, and responsive auto-fitting.

Interactive Preview

Live Edit & Viewport Resizer
Variants:

Installation

Add the Bento Grid component to your project via CLI:

terminal bash
npx plain-ui add bento-grid

Features

  • Flexible 12-column CSS Grid architecture with md:col-span-8 and md:col-span-4 ratios
  • Spotlight hover glow and gradient edge borders
  • Embedded live metric chips and activity stream cards
  • Clean mobile, tablet, and widescreen responsiveness

Variants & Examples

3-Column Compact Bento

Symmetric 3-column bento showcase for features.

bento-grid-3-column-compact-bento.html html
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 max-w-4xl mx-auto p-4">
  <div class="p-5 rounded-xl bg-zinc-900 border border-zinc-800 text-white space-y-2">
    <div class="w-8 h-8 rounded-lg bg-blue-500/20 text-blue-400 flex items-center justify-center text-sm font-bold">⚡️</div>
    <h4 class="text-sm font-semibold">Lightning Fast</h4>
    <p class="text-xs text-zinc-400">Zero runtime bundle overhead with pure HTML5 primitives.</p>
  </div>
  <div class="p-5 rounded-xl bg-zinc-900 border border-zinc-800 text-white space-y-2">
    <div class="w-8 h-8 rounded-lg bg-emerald-500/20 text-emerald-400 flex items-center justify-center text-sm font-bold">🛡️</div>
    <h4 class="text-sm font-semibold">Accessible First</h4>
    <p class="text-xs text-zinc-400">WAI-ARIA compliant keyboard navigation out of the box.</p>
  </div>
  <div class="p-5 rounded-xl bg-zinc-900 border border-zinc-800 text-white space-y-2">
    <div class="w-8 h-8 rounded-lg bg-purple-500/20 text-purple-400 flex items-center justify-center text-sm font-bold">🎨</div>
    <h4 class="text-sm font-semibold">Tailwind v4 Native</h4>
    <p class="text-xs text-zinc-400">Modern utility CSS with CSS variables and dark mode.</p>
  </div>
</div>

Attributes & Classes

Attribute / Prop Type Default Description
grid-cols-1 md:grid-cols-3 class - Grid column definition for responsive breakpoints.
md:col-span-2 class - Spans across 2 columns on desktop.

Accessibility & Keyboard Navigation

  • Logical DOM structure ensures natural screen reader reading order.
Components
#
Button
Interactive button primitives with rich visual variants, loading spinners, icons, and keyboard accessibility.
Core Primitives
#
Dialog
Native HTML <dialog> modal with backdrop blur, @starting-style entry animations, and accessible focus trapping.
Overlays & Modals
#
Popover
Native HTML Popover API (popover='auto') with zero JavaScript, CSS anchor positioning, and automatic light dismiss.
Overlays & Modals
#
Floating Label Input
Modern animated floating label form controls utilizing HTML5 placeholder-shown pseudo-class and Tailwind peer selectors.
Forms & Inputs
#
Border Beam
Dynamic glowing animated border beam gradient traveling continuously around cards and containers using pure CSS animations.
Motion & Effects
#
Shimmer Button
High-performance glowing shimmer button with animated radial light sweep across the surface.
Motion & Effects
#
Dock
macOS-inspired interactive dock with smooth pointer proximity magnification physics, hover tooltips, and app status dots.
Layout & Navigation
#
Bento Grid
Modern modular 12-column asymmetric bento box layout with spotlight card glow, metric widgets, and responsive auto-fitting.
Layout & Surfaces
#
Accordion
Pure HTML <details> and <summary> accordion with smooth height expansion animation and animated rotating chevrons.
Core Primitives
#
Tabs
Accessible, keyboard-navigable tab system with animated indicator slider and light-DOM panels.
Layout & Navigation
Getting Started
📖
Getting Started & Tailwind v4 Setup
Quick start guide and architecture overview
Navigate Select
Plain UI Search