Combo Button
Combo Button
Un Combo Button se divide en una acción principal y un pequeño menú al lado. El menú muestra variaciones cercanas de la misma acción.
Un ejemplo real
Al hacer clic en Run, comienza el build por defecto. La flecha muestra Run Without Debugging y Choose Target.
Partes principales
- 01Etiqueta visible
- 02Interaction target
- 03Current state
- 04Keyboard behavior
Úsalo cuando
Úsalo cuando una acción segura y común sea claramente la elección principal. Un menú corto puede ofrecer versiones cercanas de esa acción.
No lo uses cuando
Evítalo cuando todas las opciones importan por igual o cuando la acción principal destruye algo. El menú no debe cambiar en secreto lo que hace la mitad principal.
Nombre usado en código
AppKit NSComboButton / SwiftUI Menu with primaryAction Antes de lanzarlo
Check the supported macOS versions and AppKit or SwiftUI integration. Check standard focus and keyboard behavior. Also check VoiceOver, Full Keyboard Access, window resizing, and multi-window state. When needed, check restore, localization, and reduced motion.
Outcome: Complete the task with Combo Button (Combo Button). User context: Al hacer clic en Run, comienza el build por defecto. La flecha muestra Run Without Debugging y Choose Target. macOS concept or control: Combo Button (Combo Button). Why it fits: Úsalo cuando una acción segura y común sea claramente la elección principal. Un menú corto puede ofrecer versiones cercanas de esa acción. Do not use it when: Evítalo cuando todas las opciones importan por igual o cuando la acción principal destruye algo. El menú no debe cambiar en secreto lo que hace la mitad principal. Platform requirements: List the supported macOS versions. Say whether AppKit or SwiftUI owns each part and how they connect. Define window, menu, focus, keyboard, saved state, restore, and multi-window behavior. Platform accessibility and resilience: Use the right accessibility APIs. Check VoiceOver and Full Keyboard Access. Support localization, contrast, and reduced motion when needed. Keep user state after a relaunch. Acceptance criteria: Check the behavior on supported macOS versions with a keyboard and VoiceOver. Window resizing, focus, state restore, and AppKit or SwiftUI integration work in the normal macOS way. Evidence and limits (evidence boundary): Es oficial para esa fuente. Otras plataformas o equipos pueden usar el término de otra manera. Unknowns to confirm: Supported macOS versions, AppKit or SwiftUI structure, and window model. Also confirm sandbox and entitlement limits, save rules, and the accessibility goal.
Revisa esta petición
Review how Combo Button (Combo Button) is used now. Definition: Un Combo Button se divide en una acción principal y un pequeño menú al lado. El menú muestra variaciones cercanas de la misma acción. Release checks: Check the supported macOS versions and AppKit or SwiftUI integration. Check standard focus and keyboard behavior. Also check VoiceOver, Full Keyboard Access, window resizing, and multi-window state. When needed, check restore, localization, and reduced motion. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.