Sanity Library Reference Docs
    Preparing search index...

    Interface ReleaseActionDescription

    interface ReleaseActionDescription {
        disabled?: boolean;
        icon?: ComponentType | ReactNode;
        label: string;
        onHandle?: () => void;
        title?: ReactNode;
        tone?: "default" | "primary" | "positive" | "caution" | "critical";
    }
    Index

    Properties

    disabled?: boolean
    icon?: ComponentType | ReactNode
    label: string
    onHandle?: () => void
    title?: ReactNode
    tone?: "default" | "primary" | "positive" | "caution" | "critical"

    Semantic tone for the action's menu item, so destructive or cautionary custom actions can read as such (e.g. a delete-like action in critical). Defaults to default when omitted.