هل تعلم؟dyk.si

لوحة الأوامر Command Palette

صندوق بحث يُفتح بـ ⌘K أو Ctrl+K، تكتب فيه لتصل إلى أي أمر أو صفحة دون استخدام الفأرة.

role="combobox" + role="listbox"

متى تستخدمه

للتطبيقات كثيرة الأوامر، وللمستخدمين المحترفين محبّي لوحة المفاتيح.

خطأ شائع

لا تجعلها الطريقة الوحيدة للوصول إلى الأوامر.

إمكانية الوصول

Show shortcuts next to each command and keep the list navigable with arrow keys.

اسمه في الكود

HTML/CSSrole="combobox" + role="listbox"
React<Command> — cmdk
Jetpack ComposeDialog + TextField + LazyColumn
SwiftUI.searchable (custom panel)

برومبت جاهز لوكيل البرمجة

Add a Command Palette to this screen. What it is: A search box opened with ⌘K or Ctrl+K that reaches any command or page from the keyboard. Implement with: role="combobox" + role="listbox" (HTML/CSS). Accessibility: Show shortcuts next to each command and keep the list navigable with arrow keys. When to use it: For apps with many commands and keyboard-loving power users. Avoid: Don’t make it the only way to reach commands. Reuse the project's existing design tokens, spacing and component conventions.

أو ركّب صفحة كاملة من هذا العنصر وغيره →

البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.

يُخلَط بينه وبين عناصر أخرى؟

⇄ Search Bar أم Combobox أم Command Palette؟