| 1 |
--- |
| 2 |
id: Button |
| 3 |
section: components |
| 4 |
--- |
| 5 |
|
| 6 |
import { useState } from 'react'; |
| 7 |
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon'; |
| 8 |
|
| 9 |
## Demos |
| 10 |
|
| 11 |
### Progress button |
| 12 |
|
| 13 |
The following demo shows the intended flow for a button that visually indicates progress. This example demonstrates a login process, which updates the button label based on the `loginState`. |
| 14 |
|
| 15 |
Please note that only the button can be interacted with in this example. The username and password input fields cannot be edited as the focus is on the button behavior. |
| 16 |
|
| 17 |
```ts file="./examples/ButtonProgress.tsx" |
| 18 |
|
| 19 |
``` |