-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update src/content/design-system/components/progress-indicator
- Loading branch information
1 parent
a0728cb
commit 95fcfd0
Showing
1 changed file
with
37 additions
and
1 deletion.
There are no files selected for viewing
38 changes: 37 additions & 1 deletion
38
...ontent/design-system/components/progress-indicator/design/progress-indicator/content.mdoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,41 @@ | ||
### Default | ||
|
||
Use this progress indicator to show a process is running. | ||
|
||
```tsx | ||
() => { | ||
return <ProgressIndicator />; | ||
return ( | ||
<div className="p-1 rounded-md flex items-end justify-center" > | ||
<ProgressIndicator size="xlarge" /> | ||
</div> | ||
); | ||
} | ||
``` | ||
|
||
### Sizes | ||
|
||
The indicator comes in various sizes (Xs, Sm, Md, Lg and Xl) suitable for buttons, fields, or full-page loading. | ||
|
||
```tsx | ||
() => { | ||
return ( | ||
<div className="p-1 rounded-md flex items-end justify-center" > | ||
{(['xsmall', 'small', 'medium', 'large', 'xlarge'] as const).map(size => ( | ||
<ProgressIndicator size={size} className="mr-2" /> | ||
))} | ||
</div> | ||
); | ||
}; | ||
``` | ||
|
||
### Dark backgrounds | ||
|
||
The indicator can appear white for use on dark backgrounds. | ||
|
||
```tsx | ||
() => { | ||
return <div className="rounded-md bg-black flex items-end justify-center"> | ||
<ProgressIndicator size="xlarge" color="white" className="mr-2 mb-2 mt-2" />)} | ||
</div>; | ||
} | ||
``` |