1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-24 10:48:14 +04:00
Files
tabler/pages/_docs/progress.md
2019-12-13 17:13:42 +01:00

1.6 KiB
Raw Blame History

title, description, bootstrap-link, done
title description bootstrap-link done
Progress A progress bar can be used to show a user how far along he is in a process. components/progress/ 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 %} {% 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 %}