# Progress

Show how much of a task is complete.

## How to use it

Use a value between 0 and max. Progress must represent real data; do not use it as a simulated timer.



## Import


```tsx
import { Progress } from "@kivora/nextjs";
```


Examples run in a Client Component. Also import the hooks, icons and dependencies used. This is the web API; consult the native guide for React Native.

## Example


```tsx
<Progress value={65} max={100} aria-label="Project progress" style={{width:320}} />
```


## API: Progress


```typescript
Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>
```


| Property | Type | Required | Description |
| --- | --- | --- | --- |
| aria-label | string | No | Accessible name of the control. |
| asChild | boolean | No | Apply props and behavior to a single compatible child element. |
| children | ReactNode | No | Content or child elements of the component. |
| className | string | No | Additional CSS classes to customize the element. |
| defaultChecked | boolean | No | Initial selection of the control. |
| defaultValue | string \| number \| readonly string[] | No | Initial value when the component manages its own state. |
| getValueLabel | ((value: number, max: number) => string) | No | See the published type. |
| id | string | No | Element identifier; associates labels and descriptions. |
| indicatorClassName | string | No | See the published type. |
| max | number | No | Maximum allowed value. |
| onChange | ChangeEventHandler<HTMLDivElement, Element> | No | Change event. Check the type: some controls return an object, others a DOM event. |
| onClick | MouseEventHandler<HTMLDivElement> | No | Action performed when the element is activated. |
| onSubmit | SubmitEventHandler<HTMLDivElement> | No | Form submission event. |
| role | AriaRole | No | Semantic role of the element. Keep the default role unless a change is justified. |
| size | "default" \| "sm" \| "lg" | No | Visual size of the component. |
| style | CSSProperties | No | React inline styles. |
| tabIndex | number | No | Keyboard focus order and availability. |
| title | string | No | Title or supplementary information. |
| value | number \| null | No | Controlled value. Update it from the change callback. |

Source: https://kivora.pro/docs/componentes/progress
