Represents an action button component.

  • Parameters

    • props: IActionButtonProps

      The component props.

      • Progress

        The progress component to show when the button is loading.

      • onClick

        The function to be called when the button is clicked.

      • onLoadStart

        The function to be called when the loading starts.

      • onLoadEnd

        The function to be called when the loading ends.

      • fallback

        The function to be called when an error occurs and throwError is false.

      • children

        The content to be rendered inside the button.

      • disabled

        Whether the button is disabled.

      • throwError

        Whether to throw an error when an exception occurs.

      • variant

        The button style variant.

    Returns Element

    The rendered component.