Linear Progress With Label
A labelled horizontal progress bar with a live percentage readout above the track.
3 फ्रेमवर्कशुरुआती
A discrete progress track split into equal pill segments that fill left to right.
<!--
The row of pills is decorative; the real range still rides on the wrapper's
aria-valuenow. The segments only round the value to the nearest notch, so the
numeric % stays authoritative.
-->
<div class="w-full">
<div class="mb-1.5 flex items-center justify-between gap-3">
<span class="text-sm font-medium text-gray-700 dark:text-gray-300">Profile strength</span>
<span class="text-sm font-semibold tabular-nums text-gray-900 dark:text-gray-100">70%</span>
</div>
<div
role="progressbar"
aria-valuenow="70"
aria-valuemin="0"
aria-valuemax="100"
aria-label="Profile strength"
class="flex w-full gap-1"
>
<span class="h-2.5 flex-1 rounded-full bg-blue-600 dark:bg-blue-500"></span>
<span class="h-2.5 flex-1 rounded-full bg-blue-600 dark:bg-blue-500"></span>
<span class="h-2.5 flex-1 rounded-full bg-blue-600 dark:bg-blue-500"></span>
<span class="h-2.5 flex-1 rounded-full bg-blue-600 dark:bg-blue-500"></span>
<span class="h-2.5 flex-1 rounded-full bg-blue-600 dark:bg-blue-500"></span>
<span class="h-2.5 flex-1 rounded-full bg-blue-600 dark:bg-blue-500"></span>
<span class="h-2.5 flex-1 rounded-full bg-blue-600 dark:bg-blue-500"></span>
<span class="h-2.5 flex-1 rounded-full bg-gray-200 dark:bg-gray-800"></span>
<span class="h-2.5 flex-1 rounded-full bg-gray-200 dark:bg-gray-800"></span>
<span class="h-2.5 flex-1 rounded-full bg-gray-200 dark:bg-gray-800"></span>
</div>
</div>| Prop | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
valueआवश्यक | number | - | मेट्रिक की मौजूदा वैल्यू, पहले से फ़ॉर्मैट की हुई। |
label | string | 'Progress' | लोड होते समय पढ़ा जाने वाला एक्सेसिबल लेबल। |
segments | number | 10 | Segments |
min | number | 0 | Min |
max | number | 100 | Max |
className | string | - | रूट एलिमेंट पर मर्ज होने वाली अतिरिक्त क्लासेज़। |
Set the notch count with `segments`; the value rounds to the nearest segment while `aria-valuenow` keeps the true number. The pills stay decorative, so screen readers hear the percentage, not the geometry.