carbon-components-svelte
Version:
Svelte implementation of the Carbon Design System
29 lines (23 loc) • 645 B
TypeScript
import { SvelteComponentTyped } from "svelte";
export type CarbonContextMenuGroupContext = {
currentIds: import("svelte/store").Writable<ReadonlyArray<string>>;
addOption: (data: { id: string }) => void;
toggleOption: (data: { id: string }) => void;
};
export type ContextMenuGroupProps = {
/**
* @default []
*/
selectedIds?: ReadonlyArray<string>;
/**
* Specify the label text
* @default ""
*/
labelText?: string;
children?: (this: void) => void;
};
export default class ContextMenuGroup extends SvelteComponentTyped<
ContextMenuGroupProps,
Record<string, any>,
{ default: Record<string, never> }
> {}