You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
635 B
21 lines
635 B
<script lang="ts">
|
|
/**
|
|
* Eidos `<ContextMenu>` — root provider. Pass-through over soma.
|
|
*
|
|
* <ContextMenu>
|
|
* <ContextMenu.Trigger>Right-click me</ContextMenu.Trigger>
|
|
* <ContextMenu.Content>
|
|
* <ContextMenu.Item onSelect={...}>Copy</ContextMenu.Item>
|
|
* </ContextMenu.Content>
|
|
* </ContextMenu>
|
|
*/
|
|
import * as ContextMenu from '$soma/components/context-menu';
|
|
import type { ContextMenuProps } from './types';
|
|
|
|
let { open = $bindable(false), children, ...rest }: ContextMenuProps = $props();
|
|
</script>
|
|
|
|
<ContextMenu.Provider {...rest} bind:open>
|
|
{@render children?.()}
|
|
</ContextMenu.Provider>
|