1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-24 02:38:15 +04:00
Files
tabler/pages/_docs/progress.md
2020-02-16 21:34:30 +01:00

70 lines
1.8 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:
{% capture code %}
{% include ui/progress.html %}
{% endcapture %}
{% include example.html code=code %}
## Progress size
Using Bootstraps typical naming structure, you can create a standard progress, or scale it up to different sizes based on whats needed.
{% capture code %}
{% include ui/progress.html value=57 size="sm" %}
{% endcapture %}
{% include example.html code=code %}
## Progress without value
Remove the showed value by adding a class called `.sr-only`.
{% capture code %}
{% include ui/progress.html value=75 show-value=false %}
{% endcapture %}
{% include example.html code=code %}
## Indeterminate progress
To create indeterminate progress add `.progress-bar-indeterminate` to the `.progress-bar` element.
{% capture code %}
{% include ui/progress.html indeterminate=true size="sm" %}
{% endcapture %}
{% include example.html code=code %}
## Native progress element
You can also use native HTML5 `<progress>` element.
{% capture code %}
<progress class="progress progress-sm" value="15" max="100"/>
{% endcapture %}
{% include example.html code=code %}
## Progress color
Customize the color of the progress bar. You can click [here]({% docs_url colors %}) to see the list of available colors.
{% capture code %}
{% 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" %}
{% endcapture %}
{% include example.html code=code %}