diff --git a/ui/components/progress-bar/base/example.jsx b/ui/components/progress-bar/base/example.jsx index 4f5f54a928..3d25069dab 100644 --- a/ui/components/progress-bar/base/example.jsx +++ b/ui/components/progress-bar/base/example.jsx @@ -3,17 +3,19 @@ import React from 'react'; import classNames from 'classnames'; +import _ from '../../../shared/helpers'; /// /////////////////////////////////////////// // Partial(s) /// /////////////////////////////////////////// -export let ProgressBar = props => ( +export const ProgressBar = props => (
(
); +export const ProgressBarDescriptive = props => { + const labelUniqueId = _.uniqueId('progress-bar-label-id-'); + + return ( +
+
+ {props.label} + +
+ +
+ ); +}; + /// /////////////////////////////////////////// // Export /// /////////////////////////////////////////// @@ -58,3 +77,13 @@ export let states = [ element: } ]; + +export let examples = [ + { + id: 'progress-bar-descriptive', + label: 'Descriptive Progress Bar', + element: ( + + ) + } +];