@@ -117,6 +117,37 @@ Progress Bars has been implemented to simplify the use of the Progress Bar, with
117117], {height: '20px'}) }}
118118```
119119
120+ ## Progress Background
121+
122+ ### Parameters
123+ ` progress_background() ` macro, waits for 1 parameter:
124+
125+ | Parameter | Description | Type | Default |
126+ | :---------:| :------------------------------| :--------:| :-------:|
127+ | options | [ Options] ( #Option ) object | ` object ` | ` {} ` |
128+
129+ #### Option
130+ | Parameter | Description | Type | Default |
131+ | :---------:| -----------------------------------------------------------| :--------:| :--------------:|
132+ | color | Color of the progress (red, blue, ...) | ` string ` | ` primary-lt ` |
133+ | width | Width in percent of the progress (10, 15, 55) | ` number ` | ` 0 ` |
134+ | text | Text of the progress | ` string ` | * empty string* |
135+ | value | Value text displayed | ` string ` | * empty string* |
136+ | attr | Additional raw HTML attributes (` data-* ` , ` aria-* ` , etc.) | object | ` {} ` |
137+
138+
139+ ### Usage
140+
141+ ``` twig
142+ {% from '@Tabler/components/progress_bar.html.twig' import progress_background %}
143+
144+ {{ progress_background({width : 65, text: 'Poland'}) }}
145+ {{ progress_background({width : 35, text: 'Germany'}) }}
146+ {{ progress_background({width : 28, text: 'United Stated'}) }}
147+ {{ progress_background({width : 20, text: 'United Kingdom'}) }}
148+ {{ progress_background({width : 15, text: 'France'}) }}
149+ ```
150+
120151## Next steps
121152
122153Please go back to the [ Tabler bundle documentation] ( index.md ) to find out more about using the theme.
0 commit comments