شبكة الطوب Masonry Layout
بطاقات بأطوال مختلفة مرتّبة في أعمدة دون فراغات بين الصفوف، مثل بنترست.
columns: 3 / grid-template-rows: masonryمتى تستخدمه
لمعارض الصور والإلهام.
خطأ شائع
للمحتوى الذي يهمّ ترتيبه، الشبكة العادية أوضح.
إمكانية الوصول
The visual order differs from source order; make sure tabbing still makes sense.
اسمه في الكود
| HTML/CSS | columns: 3 / grid-template-rows: masonry |
|---|---|
| React | react-masonry-css |
| Jetpack Compose | LazyVerticalStaggeredGrid |
| SwiftUI | Custom Layout |
برومبت جاهز لوكيل البرمجة
Add a Masonry Layout to this screen.
What it is: Cards of different heights packed into columns with no row gaps, like Pinterest.
Implement with: columns: 3 / grid-template-rows: masonry (HTML/CSS).
Accessibility: The visual order differs from source order; make sure tabbing still makes sense.
When to use it: For image galleries and inspiration boards.
Avoid: For content where order matters, a regular grid is clearer.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.