# Progress (Shadcn UI kit)
Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.

```twig
<twig:Progress value="56" class="w-[60%]" />
```

## Installation


```shell
bin/console ux:install progress --kit shadcn
```

## Usage

```twig
<twig:Progress value="33" />
```




## Examples

### Label

Use a `Field` component to add a label to the progress bar.

```twig
<twig:Field class="w-full max-w-sm">
    <twig:Field:Label for="progress-upload">
        <span>Upload progress</span>
        <span class="ml-auto">56%</span>
    </twig:Field:Label>
    <twig:Progress value="56" id="progress-upload" />
</twig:Field>
```

### RTL

To enable RTL support, set the `dir="rtl"` attribute on the root element.

```twig
<div class="flex flex-col gap-8 w-full items-center">
    {# Arabic #}
    <twig:Field class="w-full max-w-sm" dir="rtl">
        <twig:Field:Label for="progress-upload-ar">
            <span>تقدم الرفع</span>
            <span class="ms-auto">٥٦%</span>
        </twig:Field:Label>
        <twig:Progress value="56" id="progress-upload-ar" class="rtl:rotate-180" />
    </twig:Field>
    {# Hebrew #}
    <twig:Field class="w-full max-w-sm" dir="rtl">
        <twig:Field:Label for="progress-upload-he">
            <span>התקדמות העלאה</span>
            <span class="ms-auto">56%</span>
        </twig:Field:Label>
        <twig:Progress value="56" id="progress-upload-he" class="rtl:rotate-180" />
    </twig:Field>
</div>
```



## API Reference

### Component `Progress`

| Prop   | Type  | Description  |
|:-------|:------|:-------------|
| `value` | `integer` | The progress percentage (0-100). Defaults to `0` |



