Home / Function/ StatusList() — ui Function Reference

StatusList() — ui Function Reference

Architecture documentation for the StatusList() function in combobox-responsive.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  60b854c1_f6b7_2e02_a01e_3ceba5bb8eea["StatusList()"]
  60b565a1_4f94_da19_992b_5d25a0311af9["combobox-responsive.tsx"]
  60b854c1_f6b7_2e02_a01e_3ceba5bb8eea -->|defined in| 60b565a1_4f94_da19_992b_5d25a0311af9
  style 60b854c1_f6b7_2e02_a01e_3ceba5bb8eea fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/examples/combobox-responsive.tsx lines 92–123

function StatusList({
  setOpen,
  setSelectedStatus,
}: {
  setOpen: (open: boolean) => void
  setSelectedStatus: (status: Status | null) => void
}) {
  return (
    <Command>
      <CommandInput placeholder="Filter status..." />
      <CommandList>
        <CommandEmpty>No results found.</CommandEmpty>
        <CommandGroup>
          {statuses.map((status) => (
            <CommandItem
              key={status.value}
              value={status.value}
              onSelect={(value) => {
                setSelectedStatus(
                  statuses.find((priority) => priority.value === value) || null
                )
                setOpen(false)
              }}
            >
              {status.label}
            </CommandItem>
          ))}
        </CommandGroup>
      </CommandList>
    </Command>
  )
}

Subdomains

Frequently Asked Questions

What does StatusList() do?
StatusList() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/combobox-responsive.tsx.
Where is StatusList() defined?
StatusList() is defined in apps/v4/registry/new-york-v4/examples/combobox-responsive.tsx at line 92.

Analyze Your Own Codebase

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

Try Supermodel Free