- 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)
Activity Indicator
Overview#
A circular spinner indicating background activity. Always indeterminate — for determinate progress use
<native:progress-bar>. Renders as a SwiftUI ProgressView on iOS and Material3
CircularProgressIndicator on Android.
Copied!
<native:activity-indicator />
Props#
All shared layout and style attributes are supported, plus:
size-"sm","md"(default), or"lg"(optional, string). Legacy ints1=large,2=small are also acceptedcolor- Spinner color as hex string (optional). Leave unset to usetheme.primarya11y-label- Accessibility label (optional)
Examples#
Centered loading screen#
Copied!
<native:column fill center> <native:activity-indicator size="lg" /> <native:text class="text-base text-slate-400 mt-4">Loading...</native:text></native:column>
Inline loading#
Copied!
<native:row :gap="8" :align-items="1"> <native:activity-indicator size="sm" /> <native:text class="text-sm text-slate-500">Refreshing</native:text></native:row>
Override the tint#
Copied!
<native:activity-indicator color="#7C3AED" />
Element#
Copied!
use Nativephp\NativeUi\Elements\ActivityIndicator; ActivityIndicator::make() ->size('lg') ->color('#7C3AED') ->a11yLabel('Loading messages');
make()- Create a new indicatorsize(string|int $size)-"sm" | "md" | "lg". Legacy:1=large,2=smallcolor(string $hex)- Override the theme tinta11yLabel(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