diff --git a/packages/react-progress-bar/docs/progress-bar-elements.stories.js b/packages/react-progress-bar/docs/progress-bar-elements.stories.js
index 23c64e2d..ae7d5e7b 100644
--- a/packages/react-progress-bar/docs/progress-bar-elements.stories.js
+++ b/packages/react-progress-bar/docs/progress-bar-elements.stories.js
@@ -105,16 +105,14 @@ export const Loader = () => {
return (
hasLoader,
- ' property to ',
- false,
- '.',
- ]}
+ description={
+ <>
+ By default, the component shows the loading wheel but you can hide it by setting hasLoader property to false.
+ >
+ }
isLast={true}
>
-
+
);
};
@@ -123,16 +121,14 @@ export const Percent = () => {
return (
hasLabel,
- ' property to ',
- false,
- '.',
- ]}
+ description={
+ <>
+ By default, the component shows the progress value or percentage, but you can hide it by setting hasLabel property to false.
+ >
+ }
isLast={true}
>
-
+
);
};
@@ -141,18 +137,14 @@ export const Cancel = () => {
return (
hasCancel,
- ' property to ',
- false,
- '. You can also pass a function when clicking on it by using the ',
- cbFunction,
- ' property.',
- ]}
+ description={
+ <>
+ By default, the component shows the cancel button, but you can hide it by setting hasCancel property to false. You can also pass a function when clicking on it by using the cbFunction property.
+ >
+ }
isLast={true}
>
-
+
);
};
@@ -162,17 +154,11 @@ export const Legend = () => {
<>
hasFrame,
- ' and ',
- hasLegend,
- ' properties are set to ',
- true,
- '. You can edit the text using ',
- sourceLang,
- ' property.',
- ]}
+ description={
+ <>
+ This text appears below the progress bar and only when hasFrame and hasLegend properties are set to true. You can edit the text using sourceLang property.
+ >
+ }
isLast={true}
>
{
hasFrame,
- ' property, you can display a gray border with inner spacing around the progress bar and its elements.',
- ]}
+ description={
+ <>
+ Using the hasFrame property, you can display a gray border with inner spacing around the progress bar and its elements.
+ >
+ }
code="<ProgressBar now={ 30 } hasFrame={ true } hasLegend={ false } />"
>
@@ -127,11 +127,11 @@ export const Design = () => {
hasLegend,
- ' property.',
- ]}
+ description={
+ <>
+ The boxed variation can come with a legend at the bottom if necessary that you can display using the hasLegend property.
+ >
+ }
code="<ProgressBar now={ 30 } hasFrame={ true } hasLegend={ true } />"
isLast={true}
>