BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/obsidianui/context-menu

context-menu

obsidianui/context-menu
FreeComponent

obsidianui publishes no description for this item.

Live preview

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

Install it

npx shadcn@latest add https://obsidianui.dev/r/context-menu.json

Source

components/ui/context-menu.tsxobsidianui.dev/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({
10 ...props
11}: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {
12 return <ContextMenuPrimitive.Root data-slot="context-menu" {...props} />
13}
14
15function ContextMenuTrigger({
16 ...props
17}: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>) {
18 return (
19 <ContextMenuPrimitive.Trigger data-slot="context-menu-trigger" {...props} />
20 )
21}
22
23function ContextMenuGroup({
24 ...props
25}: React.ComponentProps<typeof ContextMenuPrimitive.Group>) {
26 return (
27 <ContextMenuPrimitive.Group data-slot="context-menu-group" {...props} />
28 )
29}
30
31function ContextMenuPortal({
32 ...props
33}: React.ComponentProps<typeof ContextMenuPrimitive.Portal>) {
34 return (
35 <ContextMenuPrimitive.Portal data-slot="context-menu-portal" {...props} />
36 )
37}
38
39function ContextMenuSub({
40 ...props
41}: React.ComponentProps<typeof ContextMenuPrimitive.Sub>) {
42 return <ContextMenuPrimitive.Sub data-slot="context-menu-sub" {...props} />
43}
44
45function ContextMenuRadioGroup({
46 ...props
47}: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>) {
48 return (
49 <ContextMenuPrimitive.RadioGroup
50 data-slot="context-menu-radio-group"
51 {...props}
52 />
53 )
54}
55
56function ContextMenuSubTrigger({
57 className,
58 inset,
59 children,
60 ...props
61}: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
62 inset?: boolean
63}) {
64 return (
65 <ContextMenuPrimitive.SubTrigger
66 data-slot="context-menu-sub-trigger"
67 data-inset={inset}
68 className={cn(
69 "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
70 className
71 )}
72 {...props}
73 >
74 {children}
75 <ChevronRightIcon className="ml-auto" />
76 </ContextMenuPrimitive.SubTrigger>
77 )
78}
79
80function ContextMenuSubContent({
81 className,
82 ...props
83}: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>) {
84 return (
85 <ContextMenuPrimitive.SubContent
86 data-slot="context-menu-sub-content"
87 className={cn(
88// … truncated

What it pulls in

npm packages

  • lucide-react
  • @radix-ui/react-context-menu

Files it writes

  • public/r/context-menu.json

Facts

Registry
obsidianui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
3 days ago

Go to the source

Docs on obsidianui obsidianui.dev Atharvsinh-codez/ObsidianUI on GitHub Raw registry item This item as JSON

More from obsidianui

All 111 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-inputai-inputobsidianuiComponentsFree2 deps
alertalertobsidianuiComponentsFreeno deps
animated-tab-baranimated-tab-barobsidianuiComponentsFreeno deps
apple-spotlightapple-spotlightobsidianuiComponentsFree2 deps
avataravatarobsidianuiComponentsFree1 dep
badgebadgeobsidianuiComponentsFree1 dep
breadcrumbbreadcrumbobsidianuiComponentsFree2 deps
buttonbuttonobsidianuiComponentsFree1 dep
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