Skip to content

Vizel API / react/src / VizelSlashMenu

Function: VizelSlashMenu()

ts
function VizelSlashMenu(__namedParameters): ReactNode;

Defined in: packages/react/src/components/VizelSlashMenu.tsx:63

Slash command menu component for displaying command suggestions.

DOM scaffolding (listbox container, section grouping, item identity

  • index) comes from @vizel/core's buildVizelSlashMenuSpecFromCommands; this component is the React-flavored binding that maps the spec to JSX. Item rendering (icon + label + description + shortcut) stays in VizelSlashMenuItem, which keeps role="option" ownership.

Parameters

ParameterType
__namedParametersVizelSlashMenuProps

Returns

ReactNode

Released under the MIT License.