//
// Copyright 2022 DXOS.org
//
import { type Meta, type StoryObj } from '@storybook/react-vite';
import React from 'react';
import { withTheme } from '../../testing';
import { ContextMenu } from './ContextMenu';
const DefaultStory = () => {
// NOTE(thure): Since long-tap will select text in some OSs, apply `select-none` to `ContextMenu.Trigger` where possible.
return (
Right-click / long-tap here.
New Tab
⌘+T
New Window
⌘+N
New Private Window
⇧+⌘+N
{/* */}
{/* */}
{/* More Tools */}
{/* */}
{/* */}
{/*
*/}
{/* */}
{/* */}
{/* */}
{/* */}
{/* Save Page As… ⌘+S
*/}
{/* */}
{/* Create Shortcut… */}
{/* Name Window… */}
{/* */}
{/* Developer Tools */}
{/* */}
{/* */}
{/* */}
{/* */}
{/* */}
{/* */}
{/* */}
{/* */}
{/* Show Bookmarks ⌘+B
*/}
{/* */}
{/* */}
{/* */}
{/* */}
{/* */}
{/* Show Full URLs */}
{/* */}
People
{/* */}
{/* */}
{/* */}
{/* */}
{/* */}
{/* Pedro Duarte */}
{/* */}
{/* */}
{/* */}
{/* */}
{/* */}
{/* Colm Tuite */}
{/* */}
{/* */}
);
};
const meta = {
title: 'ui/react-ui-core/components/ContextMenu',
component: ContextMenu.Root as any,
render: DefaultStory,
decorators: [withTheme()],
} satisfies Meta;
export default meta;
type Story = StoryObj;
export const Default: Story = {
args: {},
};