UNPKG

@dolaanpls/react-awesome-button

Version:

Performant, extendable, highly customisable, production ready React Component that renders an animated basic set of UI buttons

12 lines (11 loc) 610 B
import * as React from 'react'; import { ButtonType } from '../AwesomeButton'; type ButtonTypeModified = Omit<ButtonType, 'onPress'>; export type ButtonProgressType = { onPress: (event: React.MouseEvent, next: () => void) => void; loadingLabel?: string; resultLabel?: string; releaseDelay?: number; }; declare const AwesomeButtonProgress: ({ onPress, rootElement, loadingLabel, resultLabel, disabled, cssModule, children, size, type, releaseDelay, ...extra }: ButtonProgressType & ButtonTypeModified) => import("react/jsx-runtime").JSX.Element; export default AwesomeButtonProgress;