werkbank
    Preparing search index...

    Function Button

    • A button component that supports a loading state.

      Parameters

      Returns Element

      The rendered button element.

      This component wraps the native HTML <button> element and adds a loading state. When loading is true, the button becomes disabled and displays a Pulse loading indicator. The default type is "submit" if not specified.

      <Button onClick={handleClick}>Click me</Button>
      
      <Button loading={isLoading}>Saving...</Button>