- Getting Started
- The Basics
- Concepts
- SuperNative
-
EDGE Components
- Introduction
- Activity Indicator
- Badge
- Bottom Navigation
- Bottom Sheet
- Button
- Button Group
- Canvas
- Carousel
- Checkbox
- Chip
- Column
- Divider
- Gesture Area
- Icon
- Icons
- Image
- Layout & Styling
- List
- Menus
- Modal
- Pressable
- Progress Bar
- Radio Group
- Row
- Scroll View
- Select
- Shapes
- Side Navigation
- Slider
- Spacer
- Stack
- Tab Row
- Text
- Text Input
- Toggle
- Top Bar
- Virtual List
- Web View
- Plugins
- Testing
- Architecture
You're viewing pre-release documentation — version 4.x is in beta
Features, APIs and behaviour may change before the stable release. View the stable version (3.x)
Progress Bar
Overview#
A linear progress indicator. When value is supplied, renders as determinate progress in [0.0, 1.0]. Without a
value (or with indeterminate), renders an animated wave.
For a circular spinner use <native:activity-indicator> instead.
Per Model 3, the progress fill uses theme.primary and the track uses theme.surfaceVariant. The optional color
prop is an escape hatch for non-theme containers.
Copied!
<native:progress-bar :value="0.65" />
Props#
value- Current progress in[0.0, 1.0](optional, float). Settingvalueimpliesindeterminate=falseindeterminate- Force indeterminate mode (optional, boolean, default:falsewhenvalueis set, otherwisetrue)color- Override the fill color as hex string (optional)track-color- Override the track color as hex string (optional)a11y-label- Accessibility label (optional)
Examples#
Determinate#
Copied!
<native:column class="w-full gap-2 p-4"> <native:row class="w-full" :justify-content="3"> <native:text class="text-sm">Uploading</native:text> <native:text class="text-sm">{{ round($progress * 100) }}%</native:text> </native:row> <native:progress-bar :value="$progress" /></native:column>
Indeterminate#
Copied!
<native:progress-bar indeterminate a11y-label="Loading" />
With color override#
Copied!
<native:progress-bar :value="0.4" color="#22C55E" track-color="#DCFCE7" />
Element#
Copied!
use Nativephp\NativeUi\Elements\ProgressBar; ProgressBar::make()->value(0.65); ProgressBar::make()->indeterminate();
make()- Create a progress barvalue(float $val)- Determinate progress in[0.0, 1.0]indeterminate(bool $value = true)- Force indeterminate modecolor(string $hex)- Override the fill tinttrackColor(string $hex)- Override the track colora11yLabel(string $value)- Accessibility label
Plugin Dev Kit
Build native plugins with
Claude Code
Learn More
NativePHP Ultra
All NativePHP plugins, teams & priority support from
$35/mo
Learn More
The Vibes
The unofficial Laracon US
Day 3
Grab Your Spot
Only 100 tickets!
The Masterclass
Go from zero to
published app
in no time
in no time
Learn More
Early Bird Pricing