Home / Function/ Commands() — supabase Function Reference

Commands() — supabase Function Reference

Architecture documentation for the Commands() function in commandmenu-hidden.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/design-system/registry/default/example/commandmenu-hidden.tsx lines 11–27

function Commands() {
  useRegisterCommands('Commands', [
    {
      id: 'shown',
      name: 'shown',
      action: () => alert('This command is shown by default'),
    },
    {
      id: 'hidden',
      name: 'open sesame',
      action: () => alert('This command is only shown when searched'),
      defaultHidden: true,
    },
  ])

  return null
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free