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

item-demo.tsx — ui Source File

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

File tsx DocumentationAtlas Changelog 3 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  ab3bd7a2_99bf_4f78_c722_a2cb2c1894d5["item-demo.tsx"]
  4b1d2128_46d9_46f0_b915_b6e1925b7876["button"]
  ab3bd7a2_99bf_4f78_c722_a2cb2c1894d5 --> 4b1d2128_46d9_46f0_b915_b6e1925b7876
  c68c8707_2b57_a84c_88d0_54d7bfae76d0["item"]
  ab3bd7a2_99bf_4f78_c722_a2cb2c1894d5 --> c68c8707_2b57_a84c_88d0_54d7bfae76d0
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  ab3bd7a2_99bf_4f78_c722_a2cb2c1894d5 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  53860de0_4d86_dc1d_c85a_07c01f0d1a07["index.tsx"]
  53860de0_4d86_dc1d_c85a_07c01f0d1a07 --> ab3bd7a2_99bf_4f78_c722_a2cb2c1894d5
  style ab3bd7a2_99bf_4f78_c722_a2cb2c1894d5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/examples/radix/ui/button"
import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemMedia,
  ItemTitle,
} from "@/examples/radix/ui/item"
import { BadgeCheckIcon, ChevronRightIcon } from "lucide-react"

export function ItemDemo() {
  return (
    <div className="flex w-full max-w-md flex-col gap-6">
      <Item variant="outline">
        <ItemContent>
          <ItemTitle>Two-factor authentication</ItemTitle>
          <ItemDescription className="text-pretty xl:hidden 2xl:block">
            Verify via email or phone number.
          </ItemDescription>
        </ItemContent>
        <ItemActions>
          <Button size="sm">Enable</Button>
        </ItemActions>
      </Item>
      <Item variant="outline" size="sm" asChild>
        <a href="#">
          <ItemMedia>
            <BadgeCheckIcon className="size-5" />
          </ItemMedia>
          <ItemContent>
            <ItemTitle>Your profile has been verified.</ItemTitle>
          </ItemContent>
          <ItemActions>
            <ChevronRightIcon className="size-4" />
          </ItemActions>
        </a>
      </Item>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • button
  • item
  • lucide-react

Frequently Asked Questions

What does item-demo.tsx do?
item-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in item-demo.tsx?
item-demo.tsx defines 1 function(s): ItemDemo.
What does item-demo.tsx depend on?
item-demo.tsx imports 3 module(s): button, item, lucide-react.
What files import item-demo.tsx?
item-demo.tsx is imported by 1 file(s): index.tsx.
Where is item-demo.tsx in the architecture?
item-demo.tsx is located at apps/v4/app/(app)/(root)/components/item-demo.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/app/(app)/(root)/components).

Analyze Your Own Codebase

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

Try Supermodel Free