UNPKG

@datalayer/core

Version:
29 lines (28 loc) 604 B
import { type ElementType } from 'react'; type ILongActionButtonProps = { /** * Button onClick callback */ onClick: () => Promise<void>; /** * Button icon */ icon: ElementType<any>; /** * Force displaying button as inProgress */ inProgress?: boolean; /** * Button label */ label: string; /** * Button disabled state */ disabled?: boolean; }; /** * Icon button displaying a spinner while its callback is running. */ export declare function LongActionButton(props: ILongActionButtonProps): JSX.Element; export {};