SelectInDialog() — ui Function Reference
Architecture documentation for the SelectInDialog() function in select-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD a089387a_2949_bf93_28bc_68306acff529["SelectInDialog()"] da287030_2184_07ad_21e7_133141a5c3fa["select-example.tsx"] a089387a_2949_bf93_28bc_68306acff529 -->|defined in| da287030_2184_07ad_21e7_133141a5c3fa style a089387a_2949_bf93_28bc_68306acff529 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/select-example.tsx lines 683–723
function SelectInDialog() {
const items = [
{ label: "Select a fruit", value: null },
{ label: "Apple", value: "apple" },
{ label: "Banana", value: "banana" },
{ label: "Blueberry", value: "blueberry" },
{ label: "Grapes", value: "grapes" },
{ label: "Pineapple", value: "pineapple" },
]
return (
<Example title="In Dialog">
<Dialog>
<DialogTrigger render={<Button variant="outline" />}>
Open Dialog
</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Select Example</DialogTitle>
<DialogDescription>
Use the select below to choose a fruit.
</DialogDescription>
</DialogHeader>
<Select items={items}>
<SelectTrigger>
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectGroup>
{items.map((item) => (
<SelectItem key={item.value} value={item.value}>
{item.label}
</SelectItem>
))}
</SelectGroup>
</SelectContent>
</Select>
</DialogContent>
</Dialog>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does SelectInDialog() do?
SelectInDialog() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/select-example.tsx.
Where is SelectInDialog() defined?
SelectInDialog() is defined in apps/v4/registry/bases/base/examples/select-example.tsx at line 683.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free