Skip to main content

Function: CommandShortcut()

@arolariu/components


@arolariu/components / CommandShortcut

Function: CommandShortcut()

CommandShortcut(__namedParameters): Element

Defined in: components/ui/command.tsx:909

Renders auxiliary shortcut text aligned to the edge of a command item.

Parameters

__namedParameters

Readonly<React.HTMLAttributes<HTMLSpanElement>>

Returns

Element

Remarks

  • Renders a <span> element
  • Built as a lightweight presentational helper for command menus

Example

<CommandShortcut>⌘K</CommandShortcut>

See

HTML span element

// was this page useful?