Guides
Navigation
Feedback
Overlays
Layout
Data Display
Forms
.md

Feedback

progress

Progress bar showing completion of a task.

Installation

php artisan ui:add progress

Usage

<x-ui.progress :value="66" />

{{-- max rescales the bar: 30 out of 120 renders as 25% --}}
<x-ui.progress :value="30" :max="120" />

No JavaScript. Pass `value` (and `max`, default 100); the fill is positioned with an inline transform because a dynamic width class cannot be compiled by Tailwind.

Props

Every prop with its default. Pass any of them as attributes, using : to bind a PHP value.

@props([
    'value' => 0,
    'max' => 100,
])