geoview-core
    Preparing search index...

    Variable LoadingButtonConst

    LoadingButton: (props: LoadingButtonPropsExtend) => Element = LoadingButtonUI

    Type Declaration

      • (props: LoadingButtonPropsExtend): Element
      • A customized Material-UI Loading Button component.

        Parameters

        Returns Element

        A rendered LoadingButton component

        // Basic usage
        <LoadingButton>
        Click Me
        </LoadingButton>

        // With loading state
        <LoadingButton
        loading [[1]](https://getbootstrap.com/docs/3.3/javascript/)
        loadingPosition="start"
        startIcon={<SaveIcon />}
        >
        Saving
        </LoadingButton>

        // With custom styling
        <LoadingButton
        loading={isLoading}
        variant="contained"
        sx={{
        minWidth: 120
        }}
        >
        Submit
        </LoadingButton>

        For performance optimization in cases of frequent parent re-renders, consider wrapping this component with React.memo at the consumption level.