BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Tailark Base UI/context-menu

Context Menu

tailark-base-ui/context-menu
FreeComponent

Tailark Base UI Context Menu component

See it running

Open the demo on Tailark Base UI

tailark.com/blocks/context-menu
Open
This registry sends X-Frame-Options, so its page cannot be embedded here. The link is the same page the frame would have shown.

Install it

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

Source

components/ui/context-menu.tsxtailark.com/r/context-menu.json · first 6 KB
1'use client'
2
3import * as React from 'react'
4import * as ContextMenuPrimitive from '@radix-ui/react-context-menu'
5import { CheckIcon, ChevronRightIcon, CircleIcon } from 'lucide-react'
6
7import { cn } from '@/lib/utils'
8
9function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {
10 return (
11 <ContextMenuPrimitive.Root
12 data-slot="context-menu"
13 {...props}
14 />
15 )
16}
17
18function ContextMenuTrigger({
19 render,
20 children,
21 ...props
22}: React.ComponentProps<typeof ContextMenuPrimitive.Trigger> & {
23 /** Base UI-style composition — mapped to Radix `asChild` */
24 render?: React.ReactElement
25}) {
26 if (render) {
27 return (
28 <ContextMenuPrimitive.Trigger
29 data-slot="context-menu-trigger"
30 asChild
31 {...props}
32 >
33 {React.cloneElement(
34 render as React.ReactElement<{ children?: React.ReactNode }>,
35 undefined,
36 children
37 )}
38 </ContextMenuPrimitive.Trigger>
39 )
40 }
41
42 return (
43 <ContextMenuPrimitive.Trigger
44 data-slot="context-menu-trigger"
45 {...props}
46 >
47 {children}
48 </ContextMenuPrimitive.Trigger>
49 )
50}
51
52function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>) {
53 return (
54 <ContextMenuPrimitive.Group
55 data-slot="context-menu-group"
56 {...props}
57 />
58 )
59}
60
61function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>) {
62 return (
63 <ContextMenuPrimitive.Portal
64 data-slot="context-menu-portal"
65 {...props}
66 />
67 )
68}
69
70function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>) {
71 return (
72 <ContextMenuPrimitive.Sub
73 data-slot="context-menu-sub"
74 {...props}
75 />
76 )
77}
78
79function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>) {
80 return (
81 <ContextMenuPrimitive.RadioGroup
82 data-slot="context-menu-radio-group"
83 {...props}
84 />
85 )
86}
87
88function ContextMenuSubTrigger({
89 className,
90 inset,
91 children,
92 ...props
93}: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
94 inset?: boolean
95}) {
96 return (
97// … truncated

What it pulls in

npm packages

  • @radix-ui/react-context-menu

Other registry items

  • @tailark/core-utils

Files it writes

  • components/ui/context-menu.tsx

Facts

Registry
Tailark Base UI
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-04
Last confirmed
today

Go to the source

Docs on Tailark Base UI tailark.com Raw registry item This item as JSON

More from Tailark Base UI

All 468 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionTailark Base UIComponentsFree1 dep
Actionnable IllustrationactionnableTailark Base UIComponentsPaidno deps
Comment Illustrationadd-commentTailark Base UIComponentsPaidno deps
Agent Illustrationagent-feedbackTailark Base UIComponentsPaidno deps
Agent Illustrationagent-task-planningTailark Base UIComponentsPaidno deps
Agent Illustrationagent-tasksTailark Base UIComponentsPaidno deps
Agent Illustrationagent-workflowTailark Base UIComponentsPaidno deps
Ai Illustrationai-1Tailark Base UIComponentsPaidno deps
BlockDex

Built by

Kynth Studio

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 Studio

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 Studio

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