Home / File/ select-demo.tsx — ui Source File

select-demo.tsx — ui Source File

Architecture documentation for select-demo.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.

File tsx DocumentationAtlas ContentSourcing 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  1949a86a_87df_77b0_b83f_ec3c9c8e2c58["select-demo.tsx"]
  9e04de79_0b92_db17_84ad_a529f1990b55["select"]
  1949a86a_87df_77b0_b83f_ec3c9c8e2c58 --> 9e04de79_0b92_db17_84ad_a529f1990b55
  style 1949a86a_87df_77b0_b83f_ec3c9c8e2c58 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Select,
  SelectContent,
  SelectGroup,
  SelectItem,
  SelectLabel,
  SelectTrigger,
  SelectValue,
} from "@/examples/base/ui/select"

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" },
]

export function SelectDemo() {
  return (
    <Select items={items}>
      <SelectTrigger className="w-full max-w-48">
        <SelectValue />
      </SelectTrigger>
      <SelectContent>
        <SelectGroup>
          <SelectLabel>Fruits</SelectLabel>
          {items.map((item) => (
            <SelectItem key={item.value} value={item.value}>
              {item.label}
            </SelectItem>
          ))}
        </SelectGroup>
      </SelectContent>
    </Select>
  )
}

Subdomains

Functions

Dependencies

  • select

Frequently Asked Questions

What does select-demo.tsx do?
select-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in select-demo.tsx?
select-demo.tsx defines 1 function(s): SelectDemo.
What does select-demo.tsx depend on?
select-demo.tsx imports 1 module(s): select.
Where is select-demo.tsx in the architecture?
select-demo.tsx is located at apps/v4/examples/base/select-demo.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free