ActionWithChildren

Configuration for an action with nested children, extending BaseAction without onClick.

Definition

export interface ActionWithChildren extends Omit<BaseAction, 'onClick'> {
    /**
     * Child actions or a function returning child actions or a React node, rendered in a dropdown.
     */
    children: BaseAction[] | ((item?: any) => ReactNode | BaseAction[]);

    /**
     * Optional ref to pass to the Dropdown component for the action.
     */
    ref?: any;
}

Usage

import { ActionWithChildren } from 'uxp/components';

Last updated