Button
AvailablePerform one immediate, labelled action with a foundational native control under the Firstlight API.
Built on NativePHP SuperNative
Firstlight is a curated form and control layer for NativePHP Mobile UI. It builds on Mobile UI’s official SwiftUI and Jetpack Compose foundation, adding stable values, consistent field semantics, strict validation, and server-authoritative state through familiar Blade components. It runs on the SuperNative foundation created by Shane Rosenthal and Simon Hamp.
queue.blade.php
EDGE
<firstlight:segmented
:options="$queues"
native:model="queue"
label="Queue"
/>
Built on NativePHP Mobile UI
NativePHP Mobile UI provides the comprehensive native foundation for NativePHP applications. Firstlight builds on it with a smaller, opinionated catalogue for teams that want common form behaviour decided once and reused consistently.
How Firstlight complements NativePHP Mobile UI →Current components
Firstlight focuses on form, selection, display, and action controls with stable values, strict validation, and consistent field semantics. The catalogue grows where a reusable product-level contract saves every app from solving the same problem again.
Perform one immediate, labelled action with a foundational native control under the Firstlight API.
Present a compact, display-only count or short marker with native platform expression.
Show a visible list of labelled options for selecting one value or several values.
Choose an optional calendar date with each platform’s native, server-authoritative picker.
Choose an optional wall-clock time while keeping the model value exact and server-authoritative.
Trigger one compact, accessible action through native SwiftUI and Material icon buttons.
Offer compact, individually shaped options for single or multiple selection.
Communicate determinate completion or indeterminate work with the native platform indicator.
Present a small set of mutually exclusive choices as a genuine native segmented control.
Enter and submit one query with native search, clear, focus, keyboard, and selection behaviour.
Choose one stable string or integer value from a collapsed native selection field.
Select one value from an exact numeric grid using each platform’s native slider.
Move an accepted numeric value through a bounded range one exact step at a time.
Present short display-only metadata or status text as a native semantic capsule.
Edit one line of text with each platform’s native keyboard, autofill, selection, and accessibility behaviour.
Edit multiline text with native selection, composition, focus, scrolling, and correction behaviour.
Present one boolean setting through each platform’s familiar native on/off control.
Firstlight in the NativePHP ecosystem
Firstlight uses the same EDGE, Element Tree, shared-memory frame, renderer, theme, and event lifecycle as NativePHP Mobile UI. Ordinary interaction stays on the native UI thread.
Quickstart
Install Firstlight alongside Mobile UI, then author focused form and action controls with familiar Blade markup.
composer require firstlightui/nativephp