'use client'; import React from 'react'; export interface GridItem { title: string; description?: string; span?: [number, number]; } export interface BrokenGridProps { items: GridItem[]; columns?: number; chaosLevel?: number; truncateText?: boolean; className?: string; } export const BrokenGridTailwind = ({ items, columns = 3, chaosLevel = 0.5, truncateText = true, className = '' }: BrokenGridProps) => { return (
{items.map((item, i) => { const rot = (Math.sin(i) * chaosLevel * 5); const transX = (Math.cos(i * 1.5) * chaosLevel * 20); const transY = (Math.sin(i * 2.3) * chaosLevel * 15); return (

{item.title}

{item.description &&

{item.description}

}
); })}
); };