forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Progress documentation (microsoft#25194)
* (chore): Update README and add MIGRATION.md to react-progress * change files * Apply suggestions from code review Co-authored-by: Ben Howell <[email protected]> Co-authored-by: Ben Howell <[email protected]>
- Loading branch information
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-progress-c2e92a72-c8c9-4de6-8329-7e686f950e0c.json
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Add documentation", | ||
"packageName": "@fluentui/react-progress", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Progress Migration | ||
|
||
## Migration from v8 | ||
|
||
v8 offers a component equivalent to v9's `Progress`. However, the API is slightly different. The main difference is that v9's `Progress` does not have the `label` or `description` props. Instead, the `label` and `hint` are located in the `ProgressField` that can be used in conjunction with `Progress`. | ||
|
||
Here's how the API of v8's `Progress` compares to the one from v9's `Progress` component: | ||
|
||
- `className` => `className` | ||
- `description` => Use `ProgressField` to use the `hint` prop | ||
- `label` => Use `ProgressField` to use the `label` prop | ||
- `onRenderProgress` => NOT SUPPORTED | ||
- `percentComplete` => Use the `value` prop | ||
- `progressHidden` => NOT SUPPORTED | ||
- `styles` => Use style customization through `className` instead | ||
|
||
## Property Mapping | ||
|
||
| v8 `ProgressIndicator` | v9 `Progress` | | ||
| ---------------------- | ------------------------------- | | ||
| `barHeight` | `thickness` | | ||
| `className` | `className` | | ||
| `componentRef` | `ref` | | ||
| `description` | use `ProgressField` hint | | ||
| `label` | use `ProgressField` label | | ||
| `percentComplete` | `value` | |
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