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
  bacec522_7330_1d8c_2611_4c295164227c["StatusList()"]
  dc4f6abf_500e_1862_0e74_bd59b9f074ad["combobox-responsive.tsx"]
  bacec522_7330_1d8c_2611_4c295164227c -->|defined in| dc4f6abf_500e_1862_0e74_bd59b9f074ad
  style bacec522_7330_1d8c_2611_4c295164227c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/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 deprecated/www/registry/new-york/examples/combobox-responsive.tsx.
Where is StatusList() defined?
StatusList() is defined in deprecated/www/registry/new-york/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