Home / Function/ DefaultLinkItems() — ui Function Reference

DefaultLinkItems() — ui Function Reference

Architecture documentation for the DefaultLinkItems() function in item-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  89bfb076_e450_c774_dce9_ac6ea65ce3c9["DefaultLinkItems()"]
  d6dd3efc_dfed_4ee7_5f78_0ead2cb393df["item-example.tsx"]
  89bfb076_e450_c774_dce9_ac6ea65ce3c9 -->|defined in| d6dd3efc_dfed_4ee7_5f78_0ead2cb393df
  style 89bfb076_e450_c774_dce9_ac6ea65ce3c9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/item-example.tsx lines 1127–1201

function DefaultLinkItems() {
  return (
    <Example title="asChild">
      <ItemGroup>
        <Item asChild>
          <a href="#">
            <ItemContent>
              <ItemTitle>Title Only (Link)</ItemTitle>
            </ItemContent>
          </a>
        </Item>
        <Item asChild>
          <a href="#">
            <ItemContent>
              <ItemTitle>Title + Description (Link)</ItemTitle>
              <ItemDescription>
                Clickable item with title and description.
              </ItemDescription>
            </ItemContent>
          </a>
        </Item>
        <Item asChild>
          <a href="#">
            <ItemMedia variant="icon">
              <IconPlaceholder
                lucide="InboxIcon"
                tabler="IconArchive"
                hugeicons="Archive02Icon"
                phosphor="TrayIcon"
                remixicon="RiInboxLine"
              />
            </ItemMedia>
            <ItemContent>
              <ItemTitle>Media + Title (Link)</ItemTitle>
            </ItemContent>
          </a>
        </Item>
        <Item asChild>
          <a href="#">
            <ItemMedia variant="icon">
              <IconPlaceholder
                lucide="InboxIcon"
                tabler="IconArchive"
                hugeicons="Archive02Icon"
                phosphor="TrayIcon"
                remixicon="RiInboxLine"
              />
            </ItemMedia>
            <ItemContent>
              <ItemTitle>Media + Title + Description (Link)</ItemTitle>
              <ItemDescription>
                Complete link item with media, title, and description.
              </ItemDescription>
            </ItemContent>
          </a>
        </Item>
        <Item asChild>
          <a href="#">
            <ItemContent>
              <ItemTitle>With Actions (Link)</ItemTitle>
              <ItemDescription>
                Link item that also has action buttons.
              </ItemDescription>
            </ItemContent>
            <ItemActions>
              <Button variant="outline" size="sm">
                Share
              </Button>
            </ItemActions>
          </a>
        </Item>
      </ItemGroup>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does DefaultLinkItems() do?
DefaultLinkItems() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/item-example.tsx.
Where is DefaultLinkItems() defined?
DefaultLinkItems() is defined in apps/v4/registry/bases/radix/examples/item-example.tsx at line 1127.

Analyze Your Own Codebase

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

Try Supermodel Free