هل تعلم؟dyk.si

أنواع الأزرار Button Variants (Primary, Secondary, Ghost)

الأزرار بدرجات أهمية: الأساسي المملوء، والثانوي بإطار، والشفاف (Ghost)، والرابط.

يُعرف أيضاً باسم: Primary، Secondary، Ghost

<button class="primary|secondary|ghost">

متى تستخدمه

لترتيب الأهمية بين عمليات الشاشة.

خطأ شائع

لا تضع ٣ أزرار أساسية بجانب بعضها.

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

Keep one primary button per view so the main action is obvious.

اسمه في الكود

HTML/CSS<button class="primary|secondary|ghost">
React<Button variant="default|outline|ghost|link">
Jetpack ComposeButton / OutlinedButton / TextButton
SwiftUI.buttonStyle(.borderedProminent / .bordered / .plain)

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

Add a Button Variants (Primary, Secondary, Ghost) to this screen. What it is: Buttons ranked by importance: filled primary, outlined secondary, ghost, and link. Implement with: <button class="primary|secondary|ghost"> (HTML/CSS). Accessibility: Keep one primary button per view so the main action is obvious. When to use it: To rank the importance of actions on a screen. Avoid: Don’t put three primary buttons side by side. Reuse the project's existing design tokens, spacing and component conventions.

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

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

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

⇄ Button Variants أم Icon Button أم FAB؟