UiCommands

Command-based paradigms for managing keyboard shortcuts and user interactions.

Internal Component

This component is intended solely for use within GitHub and is not available for external use.

Props

UiCommands

No props documented

CommandIconButton

NameDefaultDescription
commandId Required
string | number | symbol
aria-label
IconButtonProps

If aria-label is not provided, the button will render the command name as its label by default.

ref
React.Ref<HTMLButtonElement>

GlobalCommands

NameDefaultDescription
commands Required
CommandEventHandlersMap

Map of command IDs to the corresponding event handler.

ScopedCommands

No props documented

CommandKeybindingHint

NameDefaultDescription
commandId Required
string | number | symbol