<div x-data="{ model: 20 }">
<div
x-data="progress"
x-model="model"
class="flex h-4 overflow-hidden rounded-full bg-secondary-100 dark:bg-dark-800"
>
<div
x-bind="progressBar"
class="flex h-full items-center justify-center rounded-full bg-primary-400"
></div>
</div>
</div>
<script defer src="https://cdn.jsdelivr.net/npm/litewind-alpine@0.x.x/components/progress/dist/cdn.min.js"></script>
The data for the component is provided by the progress
function in the x-data
directive and the props in the data-*
attributes.
data-interactive
false
Boolean
If this prop is enabled, clicking on progress will dispatch progress-clicked
event with the clicked position as a value from 0
to 1
.
x-model
String
Array
Current progress in percent.