Right-click menu with items, submenus, checkboxes, radios, shortcuts, and keyboard navigation.
Right-click the area below to open a context menu.
<div data-sui-context="ctx-demo">Right-click here</div> <div class="sui-context-menu" id="ctx-demo" role="menu"> <button class="sui-context-item" role="menuitem">Back</button> <button class="sui-context-item" role="menuitem">Forward</button> <button class="sui-context-item" role="menuitem">Reload</button> <div class="sui-context-separator"></div> <button class="sui-context-item" role="menuitem">Save As...</button> <button class="sui-context-item" role="menuitem">Print...</button> <div class="sui-context-separator"></div> <button class="sui-context-item" role="menuitem">View Page Source</button> <button class="sui-context-item" role="menuitem">Inspect</button> </div>
Display keyboard shortcut hints alongside menu items.
<div data-sui-context="ctx-shortcuts">Right-click here</div> <div class="sui-context-menu" id="ctx-shortcuts" role="menu"> <button class="sui-context-item" role="menuitem">Undo <span class="sui-context-shortcut">⌘Z</span></button> <button class="sui-context-item" role="menuitem">Redo <span class="sui-context-shortcut">⇧⌘Z</span></button> <div class="sui-context-separator"></div> <button class="sui-context-item" role="menuitem">Cut <span class="sui-context-shortcut">⌘X</span></button> <button class="sui-context-item" role="menuitem">Copy <span class="sui-context-shortcut">⌘C</span></button> <button class="sui-context-item" role="menuitem">Paste <span class="sui-context-shortcut">⌘V</span></button> <div class="sui-context-separator"></div> <button class="sui-context-item" role="menuitem">Select All <span class="sui-context-shortcut">⌘A</span></button> </div>
Toggle items with checkboxes and exclusive radio selections.
<div data-sui-context="ctx-checks">Right-click here</div> <div class="sui-context-menu" id="ctx-checks" role="menu"> <div class="sui-context-label">View</div> <button class="sui-context-item" role="menuitemcheckbox" data-sui-context-check><span class="sui-context-check">✓</span> Show Toolbar</button> <button class="sui-context-item" role="menuitemcheckbox" data-sui-context-check><span class="sui-context-check"></span> Show Sidebar</button> <button class="sui-context-item" role="menuitemcheckbox" data-sui-context-check><span class="sui-context-check">✓</span> Show Statusbar</button> <div class="sui-context-separator"></div> <div class="sui-context-label">Sort By</div> <button class="sui-context-item" role="menuitemradio" data-sui-context-radio="sort"><span class="sui-context-check">•</span> Name</button> <button class="sui-context-item" role="menuitemradio" data-sui-context-radio="sort"><span class="sui-context-check"></span> Date</button> <button class="sui-context-item" role="menuitemradio" data-sui-context-radio="sort"><span class="sui-context-check"></span> Size</button> </div>
Nested submenus for organizing deeper actions. Hover or use arrow keys to open.
<div data-sui-context="ctx-submenu">Right-click here</div>
<div class="sui-context-menu" id="ctx-submenu" role="menu">
<button class="sui-context-item" role="menuitem">New File <span class="sui-context-shortcut">⌘N</span></button>
<div class="sui-context-sub">
<button class="sui-context-sub-trigger">New From Template</button>
<div class="sui-context-sub-content" role="menu">
<button class="sui-context-item" role="menuitem">HTML</button>
<button class="sui-context-item" role="menuitem">CSS</button>
<button class="sui-context-item" role="menuitem">JavaScript</button>
<div class="sui-context-separator"></div>
<button class="sui-context-item" role="menuitem">React Component</button>
<button class="sui-context-item" role="menuitem">Vue Component</button>
</div>
</div>
<div class="sui-context-separator"></div>
<button class="sui-context-item" role="menuitem">Open File... <span class="sui-context-shortcut">⌘O</span></button>
<div class="sui-context-sub">
<button class="sui-context-sub-trigger">Open Recent</button>
<div class="sui-context-sub-content" role="menu">
<button class="sui-context-item" role="menuitem">index.html</button>
<button class="sui-context-item" role="menuitem">softui.css</button>
<button class="sui-context-item" role="menuitem">softui.js</button>
</div>
</div>
<div class="sui-context-separator"></div>
<button class="sui-context-item" role="menuitem">Save <span class="sui-context-shortcut">⌘S</span></button>
</div>Add inline SVG icons with sui-context-icon for visual clarity.
<div data-sui-context="ctx-icons">Right-click here</div>
<div class="sui-context-menu" id="ctx-icons" role="menu">
<button class="sui-context-item" role="menuitem">
<svg class="sui-context-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>
Edit <span class="sui-context-shortcut">⌘E</span>
</button>
<button class="sui-context-item" role="menuitem">
<svg class="sui-context-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
Duplicate <span class="sui-context-shortcut">⌘D</span>
</button>
<div class="sui-context-separator"></div>
<button class="sui-context-item sui-context-item-destructive" role="menuitem">
<svg class="sui-context-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>
Delete
</button>
</div>Add the disabled class to make items non-interactive.
<div data-sui-context="ctx-disabled">Right-click here</div> <div class="sui-context-menu" id="ctx-disabled" role="menu"> <button class="sui-context-item" role="menuitem">Cut <span class="sui-context-shortcut">⌘X</span></button> <button class="sui-context-item" role="menuitem">Copy <span class="sui-context-shortcut">⌘C</span></button> <button class="sui-context-item disabled" role="menuitem">Paste <span class="sui-context-shortcut">⌘V</span></button> <div class="sui-context-separator"></div> <button class="sui-context-item" role="menuitem">Select All <span class="sui-context-shortcut">⌘A</span></button> <button class="sui-context-item disabled" role="menuitem">Find & Replace</button> </div>
Use sui-context-item-destructive for dangerous actions like delete.
<div data-sui-context="ctx-destructive">Right-click here</div> <div class="sui-context-menu" id="ctx-destructive" role="menu"> <button class="sui-context-item" role="menuitem">Rename</button> <button class="sui-context-item" role="menuitem">Move To...</button> <button class="sui-context-item" role="menuitem">Archive</button> <div class="sui-context-separator"></div> <button class="sui-context-item sui-context-item-destructive" role="menuitem">Delete Permanently</button> </div>
This is a neumorphic modal dialog. It features backdrop blur, smooth animations, and focus trap. Press Escape or click outside to close.
Your session will expire in 5 minutes. Would you like to stay signed in?
This action cannot be undone. This will permanently delete the item and remove all associated data.
This modal takes up the entire viewport. Useful for immersive content, editors, or media viewers.
Press Escape or click the close button to dismiss.
By accessing and using this service, you accept and agree to be bound by the terms and provision of this agreement. In addition, when using these particular services, you shall be subject to any posted guidelines or rules applicable to such services. Any participation in this service will constitute acceptance of this agreement.
Permission is granted to temporarily download one copy of the materials on this website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not modify or copy the materials, use the materials for any commercial purpose, attempt to reverse engineer any software, or remove any copyright notations.
The materials on this website are provided on an 'as is' basis. We make no warranties, expressed or implied, and hereby disclaim and negate all other warranties including, without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property.
In no event shall this company or its suppliers be liable for any damages (including, without limitation, damages for loss of data or profit, or due to business interruption) arising out of the use or inability to use the materials, even if we have been notified orally or in writing of the possibility of such damage.
The materials appearing on this website could include technical, typographical, or photographic errors. We do not warrant that any of the materials on its website are accurate, complete or current. We may make changes to the materials contained on its website at any time without notice.
We have not reviewed all of the sites linked to this website and are not responsible for the contents of any such linked site. The inclusion of any link does not imply endorsement. Use of any such linked web site is at the user's own risk.
We may revise these terms of service for this website at any time without notice. By using this website you are agreeing to be bound by the then current version of these terms of service. Any changes will be posted on this page with an updated revision date.
These terms and conditions are governed by and construed in accordance with applicable laws and you irrevocably submit to the exclusive jurisdiction of the courts in that location. If any provision of these terms shall be unlawful, void, or unenforceable, then that provision shall be deemed severable and shall not affect the validity of the remaining provisions.
Clicking outside this modal won't close it. Instead, the modal will shake to indicate it requires explicit action. Use the close button or press Escape to dismiss.
This is a default right-side sheet. It slides in from the right edge of the screen with a blurred backdrop.
Sheets are great for navigation menus, settings panels, detail views, and forms that don't need to interrupt the main content flow.
This sheet slides down from the top. Great for announcements, notification panels, or search interfaces.
This is a small (280px) right-side sheet.
This is a large (480px) right-side sheet. Great for forms, detail views, or complex content.
Clicking outside this sheet won't close it. The sheet will shake to indicate it requires explicit action. Use the close button or press Escape.