Component
Linear Progress Bar
Animated horizontal progress bar with percentage label and gradient fill. Includes determinate (value-driven), completed (green), and indeterminate (sliding) modes. Accessible via role=progressbar with aria-valuenow/valuetext.
- Component
- Tailwind
- HTML
- MIT
What it does
Capabilities
- Determinate fill animation
- Indeterminate sliding mode
- Percentage label
- Gradient fill
- Completed state
- Role=progressbar
- Aria-valuenow/valuetext
- Tabular-nums
Preview
Live component
9:41 100%
devsnips.site/library/tailwind/components/progress/linear-bar/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Progress/linear-bar Tailwind/Components/Progress/linear-bar <!--
Snippet Name: Linear Progress Bar
Description: Animated horizontal progress bar with percentage label and gradient fill. Includes determinate and indeterminate modes.
Author: DevSnips Contributors
Usage Example: Drop into dashboards or async task panels. Set data-value to control the fill.
-->
<div class="w-full max-w-md" data-progress="linear">
<div class="mb-2 flex items-center justify-between">
<span class="text-sm font-medium text-gray-700">Uploading assets…</span>
<span class="progress-label text-sm font-semibold tabular-nums text-gray-900">0%</span>
</div>
<div
class="relative h-2.5 w-full overflow-hidden rounded-full bg-gray-100"
role="progressbar"
aria-label="Upload progress"
aria-valuemin="0"
aria-valuemax="100"
aria-valuenow="0"
aria-valuetext="0 percent"
>
<div class="progress-fill absolute inset-y-0 left-0 w-0 rounded-full bg-gradient-to-r from-blue-500 to-blue-600 transition-[width] duration-300 ease-out"></div>
</div>
</div>
<script>
(function () {
const root = document.currentScript.closest('[data-progress]');
if (!root) return;
const fill = root.querySelector('.progress-fill');
const label = root.querySelector('.progress-label');
const bar = root.querySelector('[role="progressbar"]');
})();
</script> # Linear Bar
Linear progress bar.
## Usage
```bash
npx devsnips add Tailwind/Components/Progress/linear-bar
```
Copy from `code.html`. Prefer `role="progressbar"` with value attributes when dynamic.
## File Structure
`code.html` · `preview.html` · `metadata.json` · `README.md` 33 lines UTF-8 · LF · Spaces: 2
DevSnips AI ready Claude · Cursor · Windsurf
Agent skill & Model Context Protocol
Pass this component straight into your AI workflow. DevSnips exposes each resource as a structured, addressable registry entry, so your agent installs the real files instead of approximating them.
devsnips://components/progress/linear-bar I want to use this DevSnips resource in production: Page: https://devsnips.site/library/tailwind/components/progress/linear-bar/ Install: npx devsnips add Tailwind/Components/Progress/linear-bar This is the Linear Progress Bar — Animated horizontal progress bar with percentage label and gradient fill. Includes determinate (value-driven), completed (green), and indeterminate (sliding) modes. Accessible via role=progressbar with aria-valuenow/valuetext. Use this DevSnips resource as the starting point for my project. Adapt it to my project's stack and conventions, fix any issues, and make it production-ready while preserving its intended design and behavior.
Paste into ChatGPT, Claude or your agent — it already carries the page URL and the exact install path.
Resource URI
devsnips://components/progress/linear-bar