feat(context-menu): support danger kind for ContextMenuOption

This commit is contained in:
Eric Y Liu 2021-04-02 04:40:27 -07:00
commit b19696b9f1
6 changed files with 27 additions and 0 deletions

View file

@ -3,6 +3,12 @@ import { SvelteComponentTyped } from "svelte";
export interface ContextMenuOptionProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["li"]> {
/**
* Specify the kind of option
* @default "default"
*/
kind?: "default" | "danger";
/**
* Set to `true` to enable the disabled state
* @default false