Skip to content

Vizel API / react/src / VizelSlashMenuEmpty

Function: VizelSlashMenuEmpty()

ts
function VizelSlashMenuEmpty(__namedParameters): Element;

Defined in: packages/react/src/components/VizelSlashMenuEmpty.tsx:18

An empty state component for the VizelSlashMenu when no results are found.

Parameters

ParameterType
__namedParametersVizelSlashMenuEmptyProps

Returns

Element

Example

tsx
{items.length === 0 && (
  <VizelSlashMenuEmpty>No commands found</VizelSlashMenuEmpty>
)}

Released under the MIT License.