1
0
mirror of https://github.com/tabler/tabler.git synced 2026-06-20 14:20:09 +04:00
Files
tabler/pages/_docs/progress.md
T
2019-12-13 17:13:42 +01:00

58 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Progress
description: A progress bar can be used to show a user how far along he is in a process.
bootstrap-link: components/progress/
done: true
---
### Default markup
To create a default progress bar, add a `.progress` class to a `<div>` element:
{% example html %}
{% include ui/progress.html %}
{% endexample %}
### Progress size
Using Bootstraps typical naming structure, you can create a standard progress, or scale it up to different sizes based on whats needed.
{% example html %}
{% include ui/progress.html value=57 size="sm" %}
{% endexample %}
### Progress without value
Remove the showed value by adding a class called `.sr-only`.
{% example html %}
{% include ui/progress.html value=75 show-value=false %}
{% endexample %}
### Indeterminate progress
To create indeterminate progress add `.progress-bar-indeterminate` to the `.progress-bar` element.
{% example html %}
{% include ui/progress.html indeterminate=true size="sm" %}
{% endexample %}
### Native progress element
You can also use native HTML5 `<progress>` element.
{% example html %}
<progress class="progress progress-sm" value="15" max="100"/>
{% endexample %}
### Progress color
Customize the color of the progress bar. You can click [here]({% docs_url colors %}) to see the list of available colors.
{% example %}
{% include ui/progress.html size="sm" color="red" class="mb-2" value=24 %}
{% include ui/progress.html size="sm" color="green" class="mb-2" value=45 %}
{% include ui/progress.html size="sm" color="purple" class="mb-2" value=64 %}
{% include ui/progress.html size="sm" color="pink" %}
{% endexample %}