Home / Function/ SelectWithIcons() — ui Function Reference

SelectWithIcons() — ui Function Reference

Architecture documentation for the SelectWithIcons() function in select-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  ba0b7fb6_424e_2f8e_24a0_14e4c1003be3["SelectWithIcons()"]
  da287030_2184_07ad_21e7_133141a5c3fa["select-example.tsx"]
  ba0b7fb6_424e_2f8e_24a0_14e4c1003be3 -->|defined in| da287030_2184_07ad_21e7_133141a5c3fa
  style ba0b7fb6_424e_2f8e_24a0_14e4c1003be3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/select-example.tsx lines 136–233

function SelectWithIcons() {
  const items = [
    {
      label: (
        <>
          <IconPlaceholder
            lucide="ChartLineIcon"
            tabler="IconChartLine"
            hugeicons="Chart03Icon"
            phosphor="ChartLineIcon"
            remixicon="RiLineChartLine"
          />
          Chart Type
        </>
      ),
      value: null,
    },
    {
      label: (
        <>
          <IconPlaceholder
            lucide="ChartLineIcon"
            tabler="IconChartLine"
            hugeicons="Chart03Icon"
            phosphor="ChartLineIcon"
            remixicon="RiLineChartLine"
          />
          Line
        </>
      ),
      value: "line",
    },
    {
      label: (
        <>
          <IconPlaceholder
            lucide="ChartBarIcon"
            tabler="IconChartBar"
            hugeicons="Chart03Icon"
            phosphor="ChartBarIcon"
            remixicon="RiBarChartLine"
          />
          Bar
        </>
      ),
      value: "bar",
    },
    {
      label: (
        <>
          <IconPlaceholder
            lucide="ChartPieIcon"
            tabler="IconChartPie"
            hugeicons="Chart03Icon"
            phosphor="ChartPieIcon"
            remixicon="RiPieChartLine"
          />
          Pie
        </>
      ),
      value: "pie",
    },
  ]
  return (
    <Example title="With Icons">
      <div className="flex flex-col gap-4">
        <Select items={items}>
          <SelectTrigger size="sm">
            <SelectValue />
          </SelectTrigger>
          <SelectContent>
            <SelectGroup>
              {items.map((item) => (
                <SelectItem key={item.value} value={item.value}>
                  {item.label}
                </SelectItem>
              ))}
            </SelectGroup>
          </SelectContent>
        </Select>
        <Select items={items}>

Subdomains

Frequently Asked Questions

What does SelectWithIcons() do?
SelectWithIcons() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/select-example.tsx.
Where is SelectWithIcons() defined?
SelectWithIcons() is defined in apps/v4/registry/bases/base/examples/select-example.tsx at line 136.

Analyze Your Own Codebase

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

Try Supermodel Free