Commands() — supabase Function Reference
Architecture documentation for the Commands() function in commandmenu-force.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/design-system/registry/default/example/commandmenu-force.tsx lines 11–40
function Commands() {
useRegisterCommands('Commands', [
{
id: 'forced',
name: 'Force-mounted',
action: () => alert("This command always shows even if it doesn't match the search query"),
forceMount: true,
},
{
id: 'not-forced',
name: 'Not force-mounted',
action: () => alert("This command will disappear if it doesn't match the search query"),
},
])
useRegisterCommands(
'Force-mounted section',
[
{
id: 'example',
name: 'An example',
action: () => alert('This entire section is force-mounted'),
},
],
{
forceMountSection: true,
}
)
return null
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free