Home / File/ combobox-responsive.tsx — ui Source File

combobox-responsive.tsx — ui Source File

Architecture documentation for combobox-responsive.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 6 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  60b565a1_4f94_da19_992b_5d25a0311af9["combobox-responsive.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  60b565a1_4f94_da19_992b_5d25a0311af9 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  5b9fe790_07fa_d673_2d62_394a21141145["use-media-query"]
  60b565a1_4f94_da19_992b_5d25a0311af9 --> 5b9fe790_07fa_d673_2d62_394a21141145
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  60b565a1_4f94_da19_992b_5d25a0311af9 --> 57e86e45_ac6e_7278_be08_9092724e8401
  ea5fe791_bf71_2e59_8da4_433dcd06ee7b["command"]
  60b565a1_4f94_da19_992b_5d25a0311af9 --> ea5fe791_bf71_2e59_8da4_433dcd06ee7b
  538a1992_2e44_c995_0fe9_493e88eb6ea5["drawer"]
  60b565a1_4f94_da19_992b_5d25a0311af9 --> 538a1992_2e44_c995_0fe9_493e88eb6ea5
  64a3481c_a85b_fe79_409a_cb7f3f4bb871["popover"]
  60b565a1_4f94_da19_992b_5d25a0311af9 --> 64a3481c_a85b_fe79_409a_cb7f3f4bb871
  style 60b565a1_4f94_da19_992b_5d25a0311af9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"

import { useMediaQuery } from "@/hooks/use-media-query"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
  Command,
  CommandEmpty,
  CommandGroup,
  CommandInput,
  CommandItem,
  CommandList,
} from "@/registry/new-york-v4/ui/command"
import {
  Drawer,
  DrawerContent,
  DrawerTrigger,
} from "@/registry/new-york-v4/ui/drawer"
import {
  Popover,
  PopoverContent,
  PopoverTrigger,
} from "@/registry/new-york-v4/ui/popover"

type Status = {
  value: string
  label: string
}

const statuses: Status[] = [
  {
    value: "backlog",
    label: "Backlog",
  },
  {
    value: "todo",
    label: "Todo",
  },
  {
    value: "in progress",
    label: "In Progress",
  },
  {
    value: "done",
    label: "Done",
  },
  {
    value: "canceled",
    label: "Canceled",
  },
]

export default function ComboBoxResponsive() {
  const [open, setOpen] = React.useState(false)
  const isDesktop = useMediaQuery("(min-width: 768px)")
  const [selectedStatus, setSelectedStatus] = React.useState<Status | null>(
    null
  )

// ... (64 more lines)

Subdomains

Types

Dependencies

  • button
  • command
  • drawer
  • popover
  • react
  • use-media-query

Frequently Asked Questions

What does combobox-responsive.tsx do?
combobox-responsive.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in combobox-responsive.tsx?
combobox-responsive.tsx defines 2 function(s): ComboBoxResponsive, StatusList.
What does combobox-responsive.tsx depend on?
combobox-responsive.tsx imports 6 module(s): button, command, drawer, popover, react, use-media-query.
Where is combobox-responsive.tsx in the architecture?
combobox-responsive.tsx is located at apps/v4/registry/new-york-v4/examples/combobox-responsive.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

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

Try Supermodel Free