BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/amarjay-ui/context-menu

context-menu

amarjay-ui/context-menu
FreeComponent

Contextual action menu for a right click or long press.

Live preview

live · rendered by the registry
Rendered by amarjay-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.amarjay.com/r/context-menu.json

Source

src/components/ui/context-menu.tsxui.amarjay.com/r/context-menu.json · first 6 KB
1import * as React from "react"
2import { ContextMenu as ContextMenuPrimitive } from "radix-ui"
3
4import { cn } from "@/lib/utils"
5import { ChevronRightIcon, CheckIcon } from "lucide-react"
6
7function ContextMenu({
8 ...props
9}: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {
10 return <ContextMenuPrimitive.Root data-slot="context-menu" {...props} />
11}
12
13function ContextMenuTrigger({
14 className,
15 ...props
16}: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>) {
17 return (
18 <ContextMenuPrimitive.Trigger
19 data-slot="context-menu-trigger"
20 className={cn("select-none", className)}
21 {...props}
22 />
23 )
24}
25
26function ContextMenuGroup({
27 ...props
28}: React.ComponentProps<typeof ContextMenuPrimitive.Group>) {
29 return (
30 <ContextMenuPrimitive.Group data-slot="context-menu-group" {...props} />
31 )
32}
33
34function ContextMenuPortal({
35 ...props
36}: React.ComponentProps<typeof ContextMenuPrimitive.Portal>) {
37 return (
38 <ContextMenuPrimitive.Portal data-slot="context-menu-portal" {...props} />
39 )
40}
41
42function ContextMenuSub({
43 ...props
44}: React.ComponentProps<typeof ContextMenuPrimitive.Sub>) {
45 return <ContextMenuPrimitive.Sub data-slot="context-menu-sub" {...props} />
46}
47
48function ContextMenuRadioGroup({
49 ...props
50}: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>) {
51 return (
52 <ContextMenuPrimitive.RadioGroup
53 data-slot="context-menu-radio-group"
54 {...props}
55 />
56 )
57}
58
59function ContextMenuContent({
60 className,
61 ...props
62}: React.ComponentProps<typeof ContextMenuPrimitive.Content> & {
63 side?: "top" | "right" | "bottom" | "left"
64}) {
65 return (
66 <ContextMenuPrimitive.Portal>
67 <ContextMenuPrimitive.Content
68 data-slot="context-menu-content"
69 className={cn(
70// … truncated

What it pulls in

npm packages

  • lucide-react
  • radix-ui

Other registry items

  • utils

Files it writes

  • src/components/ui/context-menu.tsx

Facts

Registry
amarjay-ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-08
Last confirmed
yesterday

Go to the source

Docs on amarjay-ui ui.amarjay.com amar-jay/ui on GitHub Raw registry item This item as JSON

More from amarjay-ui

All 18 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
alertalertamarjay-uiComponentsFree1 dep
avataravataramarjay-uiComponentsFree1 dep
badgebadgeamarjay-uiComponentsFree2 deps
buttonbuttonamarjay-uiComponentsFree2 deps
cardcardamarjay-uiComponentsFreeno deps
chartchartamarjay-uiComponentsFree1 dep
dialogdialogamarjay-uiComponentsFree2 deps
dropdown-menudropdown-menuamarjay-uiComponentsFree2 deps
BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex