Skip to content

Commit

Permalink
Improve ProgressBar docs
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Nov 30, 2023
1 parent a9a4d8f commit a570c2f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,19 @@ Variants.args = {
max: 10,
};

const sizeNames = {
s: 'small',
m: 'medium',
l: 'large',
};

export const Sizes = (args: ProgressBarProps) =>
sizes.map((size) => (
<ProgressBar
key={size}
{...args}
size={size}
label={`A ${size} progressbar`}
label={`A ${sizeNames[size]} progressbar`}
style={progressBarStyles}
/>
));
Expand Down

0 comments on commit a570c2f

Please sign in to comment.