Docs
Context Menu

Context Menu

Displays a menu to the user — such as a set of actions or functions — triggered by right click.

Loading...

Installation

	npx svell@latest add context-menu

Usage

	<script lang="ts">
  import * as ContextMenu from "$lib/components/ui/context-menu";
</script>
 
<ContextMenu.Root>
  <ContextMenu.Trigger>Right click</ContextMenu.Trigger>
  <ContextMenu.Content>
    <ContextMenu.Item>Profile</ContextMenu.Item>
    <ContextMenu.Item>Billing</ContextMenu.Item>
    <ContextMenu.Item>Team</ContextMenu.Item>
    <ContextMenu.Item>Subscription</ContextMenu.Item>
  </ContextMenu.Content>
</ContextMenu.Root>

Built & designed by shadcn. Ported to Svelte by netronk. The source code is available on GitHub.