// // Copyright 2022 DXOS.org // import '@dxos-theme'; import React from 'react'; import { ContextMenu } from './ContextMenu'; import { withTheme } from '../../testing'; 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 */} {/* */} {/* */}
); }; export default { title: 'ui/react-ui-core/ContextMenu', component: ContextMenu, render: DefaultStory, decorators: [withTheme], parameters: { chromatic: { disableSnapshot: false } }, }; export const Default = { args: {}, parameters: { chromatic: { delay: 1600 }, }, };