table-actions.tsx — ui Source File
Architecture documentation for table-actions.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR fa9be39f_492c_02ef_701f_106bebc5b3f7["table-actions.tsx"] 4544fa74_9b37_0912_c55e_f4ff161b8e83["button"] fa9be39f_492c_02ef_701f_106bebc5b3f7 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83 c4ec47ed_7434_868c_4320_f03b26dfd4e8["dropdown-menu"] fa9be39f_492c_02ef_701f_106bebc5b3f7 --> c4ec47ed_7434_868c_4320_f03b26dfd4e8 0f04a46b_9f24_11ac_9b3a_a2148feb5cd0["table"] fa9be39f_492c_02ef_701f_106bebc5b3f7 --> 0f04a46b_9f24_11ac_9b3a_a2148feb5cd0 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] fa9be39f_492c_02ef_701f_106bebc5b3f7 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 style fa9be39f_492c_02ef_701f_106bebc5b3f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/examples/base/ui/button"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/examples/base/ui/dropdown-menu"
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from "@/examples/base/ui/table"
import { MoreHorizontalIcon } from "lucide-react"
export function TableActions() {
return (
<Table>
<TableHeader>
<TableRow>
<TableHead>Product</TableHead>
<TableHead>Price</TableHead>
<TableHead className="text-right">Actions</TableHead>
</TableRow>
</TableHeader>
<TableBody>
<TableRow>
<TableCell className="font-medium">Wireless Mouse</TableCell>
<TableCell>$29.99</TableCell>
<TableCell className="text-right">
<DropdownMenu>
<DropdownMenuTrigger
render={
<Button variant="ghost" size="icon" className="size-8" />
}
>
<MoreHorizontalIcon />
<span className="sr-only">Open menu</span>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuItem>Edit</DropdownMenuItem>
<DropdownMenuItem>Duplicate</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem variant="destructive">
Delete
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</TableCell>
</TableRow>
<TableRow>
<TableCell className="font-medium">Mechanical Keyboard</TableCell>
<TableCell>$129.99</TableCell>
<TableCell className="text-right">
<DropdownMenu>
<DropdownMenuTrigger
render={
<Button variant="ghost" size="icon" className="size-8" />
}
>
<MoreHorizontalIcon />
<span className="sr-only">Open menu</span>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuItem>Edit</DropdownMenuItem>
<DropdownMenuItem>Duplicate</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem variant="destructive">
Delete
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</TableCell>
</TableRow>
<TableRow>
<TableCell className="font-medium">USB-C Hub</TableCell>
<TableCell>$49.99</TableCell>
<TableCell className="text-right">
<DropdownMenu>
<DropdownMenuTrigger
render={
<Button variant="ghost" size="icon" className="size-8" />
}
>
<MoreHorizontalIcon />
<span className="sr-only">Open menu</span>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuItem>Edit</DropdownMenuItem>
<DropdownMenuItem>Duplicate</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem variant="destructive">
Delete
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</TableCell>
</TableRow>
</TableBody>
</Table>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- dropdown-menu
- lucide-react
- table
Source
Frequently Asked Questions
What does table-actions.tsx do?
table-actions.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 table-actions.tsx?
table-actions.tsx defines 1 function(s): TableActions.
What does table-actions.tsx depend on?
table-actions.tsx imports 4 module(s): button, dropdown-menu, lucide-react, table.
Where is table-actions.tsx in the architecture?
table-actions.tsx is located at apps/v4/examples/base/table-actions.tsx (domain: DocumentationAtlas, subdomain: Changelog, 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