combobox-form.tsx — ui Source File
Architecture documentation for combobox-form.tsx, a tsx file in the ui codebase. 10 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR a3e0f877_7f95_4b00_7616_64f93c86e33e["combobox-form.tsx"] 3d40a3bf_c062_4304_329a_00b1b72e8523["zod"] a3e0f877_7f95_4b00_7616_64f93c86e33e --> 3d40a3bf_c062_4304_329a_00b1b72e8523 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] a3e0f877_7f95_4b00_7616_64f93c86e33e --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 6d65354d_8f59_2cfc_4783_24b2eb870bc4["react-hook-form"] a3e0f877_7f95_4b00_7616_64f93c86e33e --> 6d65354d_8f59_2cfc_4783_24b2eb870bc4 6802ce19_522d_e5fb_e458_8826d9f6952e["zod"] a3e0f877_7f95_4b00_7616_64f93c86e33e --> 6802ce19_522d_e5fb_e458_8826d9f6952e 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] a3e0f877_7f95_4b00_7616_64f93c86e33e --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 64d95022_f8e1_3e94_bb97_22b3ebca757e["use-toast"] a3e0f877_7f95_4b00_7616_64f93c86e33e --> 64d95022_f8e1_3e94_bb97_22b3ebca757e aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] a3e0f877_7f95_4b00_7616_64f93c86e33e --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 64c05bed_da32_06a4_3b53_12b3830eb50b["command"] a3e0f877_7f95_4b00_7616_64f93c86e33e --> 64c05bed_da32_06a4_3b53_12b3830eb50b 7a6b0be4_eca5_4970_1a93_79d670ef529e["form"] a3e0f877_7f95_4b00_7616_64f93c86e33e --> 7a6b0be4_eca5_4970_1a93_79d670ef529e e33b0d79_0534_28ec_a112_ac16ee736e09["popover"] a3e0f877_7f95_4b00_7616_64f93c86e33e --> e33b0d79_0534_28ec_a112_ac16ee736e09 style a3e0f877_7f95_4b00_7616_64f93c86e33e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { zodResolver } from "@hookform/resolvers/zod"
import { Check, ChevronsUpDown } from "lucide-react"
import { useForm } from "react-hook-form"
import { z } from "zod"
import { cn } from "@/lib/utils"
import { toast } from "@/registry/new-york/hooks/use-toast"
import { Button } from "@/registry/new-york/ui/button"
import {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
} from "@/registry/new-york/ui/command"
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
FormMessage,
} from "@/registry/new-york/ui/form"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/registry/new-york/ui/popover"
const languages = [
{ label: "English", value: "en" },
{ label: "French", value: "fr" },
{ label: "German", value: "de" },
{ label: "Spanish", value: "es" },
{ label: "Portuguese", value: "pt" },
{ label: "Russian", value: "ru" },
{ label: "Japanese", value: "ja" },
{ label: "Korean", value: "ko" },
{ label: "Chinese", value: "zh" },
] as const
const FormSchema = z.object({
language: z.string({
required_error: "Please select a language.",
}),
})
export default function ComboboxForm() {
const form = useForm<z.infer<typeof FormSchema>>({
resolver: zodResolver(FormSchema),
})
function onSubmit(data: z.infer<typeof FormSchema>) {
toast({
title: "You submitted the following values:",
description: (
// ... (82 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- command
- form
- lucide-react
- popover
- react-hook-form
- use-toast
- utils
- zod
- zod
Source
Frequently Asked Questions
What does combobox-form.tsx do?
combobox-form.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-form.tsx?
combobox-form.tsx defines 1 function(s): ComboboxForm.
What does combobox-form.tsx depend on?
combobox-form.tsx imports 10 module(s): button, command, form, lucide-react, popover, react-hook-form, use-toast, utils, and 2 more.
Where is combobox-form.tsx in the architecture?
combobox-form.tsx is located at deprecated/www/registry/new-york/examples/combobox-form.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free