- {({ handleSubmit, isSubmitting, success, description, ariaLive }) => (
-
-
- {isSubmitting || success ? (
-
- ) : (
-
- )}
-
- )}
-
- );
-};
-
-UxExample.storyName = 'UX example';
diff --git a/packages/react/src/components/InlineLoading/InlineLoading.js b/packages/react/src/components/InlineLoading/InlineLoading.js
index 0b0724fa3c05..e4d7a8641f0d 100644
--- a/packages/react/src/components/InlineLoading/InlineLoading.js
+++ b/packages/react/src/components/InlineLoading/InlineLoading.js
@@ -18,7 +18,7 @@ export default function InlineLoading({
iconDescription,
description,
onSuccess,
- successDelay,
+ successDelay = 1500,
...other
}) {
const prefix = usePrefix();
@@ -110,6 +110,3 @@ InlineLoading.propTypes = {
*/
successDelay: PropTypes.number,
};
-InlineLoading.defaultProps = {
- successDelay: 1500,
-};
diff --git a/packages/react/src/components/InlineLoading/InlineLoading.mdx b/packages/react/src/components/InlineLoading/InlineLoading.mdx
index 4e9dc19f5a3b..91019c6dcda9 100644
--- a/packages/react/src/components/InlineLoading/InlineLoading.mdx
+++ b/packages/react/src/components/InlineLoading/InlineLoading.mdx
@@ -1,4 +1,5 @@
-import { Props } from '@storybook/addon-docs';
+import { Props, Preview, Story } from '@storybook/addon-docs';
+import InlineLoading from '../InlineLoading';
# InlineLoading
@@ -12,6 +13,10 @@ import { Props } from '@storybook/addon-docs';
## Overview
+