Skip to content

Commit

Permalink
Add jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
fullofcaffeine committed May 24, 2024
1 parent 1d22f24 commit b096ca4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/components/src/progress-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ function UnforwardedProgressBar(
);
}

/* A simple horizontal progress bar component.
*
* Supports two modes: determinate and indeterminate. A progress bar is determinate when a specific progress value has been specified (from 0 to 100), and indeterminate when a value hasn't been specified.
*
* ```jsx
* import { ProgressBar } from '@wordpress/components';
*
* const MyLoadingComponent = () => {
* return <ProgressBar />
* }
* ```
*/
export const ProgressBar = forwardRef( UnforwardedProgressBar );

export default ProgressBar;

0 comments on commit b096ca4

Please sign in to comment.