الورقة السفلية Bottom Sheet
لوحة تنزلق من أسفل الشاشة إلى الأعلى، فيها خيارات أو تفاصيل، وتسحبها إلى الأسفل لإغلاقها.
<dialog> + CSS transformمتى تستخدمه
على الهاتف للخيارات السريعة: المشاركة، أو التصفية، أو تفاصيل عنصر.
خطأ شائع
على سطح المكتب غالباً ما يكون الـ Popover أو الـ Modal أنسب.
إمكانية الوصول
Offer a visible close option besides dragging, and move focus into the sheet.
اسمه في الكود
| HTML/CSS | <dialog> + CSS transform |
|---|---|
| React | <Drawer> — vaul |
| Jetpack Compose | ModalBottomSheet |
| SwiftUI | .sheet + .presentationDetents |
برومبت جاهز لوكيل البرمجة
Add a Bottom Sheet to this screen.
What it is: A panel that slides up from the bottom edge with options or details; drag it down to dismiss.
Implement with: <dialog> + CSS transform (HTML/CSS).
Accessibility: Offer a visible close option besides dragging, and move focus into the sheet.
When to use it: On mobile for quick choices: share, filter, or item details.
Avoid: On desktop a popover or modal usually fits better.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.