snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
29
apps/v4/examples/base/context-menu-basic.tsx
Normal file
29
apps/v4/examples/base/context-menu-basic.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import {
|
||||
ContextMenu,
|
||||
ContextMenuContent,
|
||||
ContextMenuGroup,
|
||||
ContextMenuItem,
|
||||
ContextMenuTrigger,
|
||||
} from "@/styles/base-nova/ui/context-menu"
|
||||
|
||||
export function ContextMenuBasic() {
|
||||
return (
|
||||
<ContextMenu>
|
||||
<ContextMenuTrigger className="flex aspect-video w-full max-w-xs items-center justify-center rounded-xl border border-dashed text-sm">
|
||||
<span className="hidden pointer-fine:inline-block">
|
||||
Right click here
|
||||
</span>
|
||||
<span className="hidden pointer-coarse:inline-block">
|
||||
Long press here
|
||||
</span>
|
||||
</ContextMenuTrigger>
|
||||
<ContextMenuContent>
|
||||
<ContextMenuGroup>
|
||||
<ContextMenuItem>Back</ContextMenuItem>
|
||||
<ContextMenuItem disabled>Forward</ContextMenuItem>
|
||||
<ContextMenuItem>Reload</ContextMenuItem>
|
||||
</ContextMenuGroup>
|
||||
</ContextMenuContent>
|
||||
</ContextMenu>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user