mirror of
https://github.com/hunvreus/basecoat.git
synced 2026-11-13 05:38:18 +00:00
1.4 KiB
1.4 KiB
templateEngineOverride, layout, title, description, toc
| templateEngineOverride | layout | title | description | toc | |||||
|---|---|---|---|---|---|---|---|---|---|
| njk | layouts/page.njk | Progress | Displays an indicator showing the completion progress of a task, typically displayed as a progress bar. |
|
{% from "macros/code_preview.njk" import code_preview %} {% from "macros/code_block.njk" import code_block %}
{% lucide "circle-alert" %}
There is no dedicated Progress component in Basecoat.
{% set code_default %}
{{ code_preview("progress-default", code_default, class="w-full max-w-sm") }}
Usage
Progress bars are pure HTML composition using Tailwind utility classes. Use a container div for the track and an inner div for the indicator. Set the indicator's width with inline styles or via JavaScript.
{% set code_usage %}
{{ code_block(code_usage) }}