@atlaskit/button
Version:
A button triggers an event or action. They let users know what will happen next.
20 lines (19 loc) • 1.02 kB
TypeScript
import React from 'react';
import { type BaseProps } from './types';
export type LoadingButtonOwnProps = {
isLoading?: boolean;
};
export type LoadingButtonProps = Omit<BaseProps, 'overlay'> & LoadingButtonOwnProps;
/**
* __Loading button__
*
* @deprecated Legacy loading buttons are deprecated and will be removed from `atlaskit/button` in an upcoming major release. Please use the new Button components from `@atlaskit/button/new` with the `isLoading` prop.
*
* Please refer to the [migration guide](https://atlassian.design/components/button/button-legacy/migration-guide) for further details.
*
* A small wrapper around Button that allows you to show an @atlaskit/spinner as an overlay on the button when you set an isLoading prop to true.
*
* - [Examples](https://atlassian.design/components/button/examples#loading-button)
*/
declare const LoadingButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<LoadingButtonProps> & React.RefAttributes<HTMLElement>>;
export default LoadingButton;