- Getting Started
- Architecture
- The Basics
- Digging Deeper
-
EDGE Components
- Introduction
- Activity Indicator
- Badge
- Bottom Navigation
- Bottom Sheet
- Button
- Button Group
- Canvas
- Carousel
- Checkbox
- Chip
- Column
- Divider
- Gesture Area
- Icon
- Image
- Lazy Grid
- Layout & Styling
- List
- Menus
- Modal
- Pressable
- Progress Bar
- Radio Group
- Refreshable
- Row
- Scroll View
- Select
- Shapes
- Side Navigation
- Slider
- Spacer
- Stack
- Tab Row
- Text
- Text Input
- Toggle
- Top Bar
- Virtual List
- Web View
- Plugins
- Testing
- Publishing Your App
Row
Get the Jump app
You'll need the free Jump app to preview this page on your device. Install it, then scan the code again.
Overview#
A horizontal flex container that arranges its children from left to right. Use rows for side-by-side layouts, toolbars, and inline groupings.
Copied!
<native:row class="gap-3 items-center"> <native:icon name="star" color="#FBBF24" /> <native:text class="text-lg text-theme-on-surface">4.8 Rating</native:text></native:row>
Children#
Accepts any EDGE elements as children. Children are arranged horizontally from left to right.
Supported Tailwind classes#
Row inherits the full class set documented at Layout & Styling. The classes that shape how a row behaves specifically:
| Class | Effect on a row |
|---|---|
gap-N |
Horizontal spacing between children |
items-* |
Vertical (cross-axis) alignment of children: items-start, items-center, items-end, items-stretch |
justify-* |
Horizontal (main-axis) distribution: justify-start, justify-center, justify-end, justify-between, justify-around, justify-evenly |
flex-1 |
Fills remaining space in the parent flex container |
Everything else from the shared list applies the same as on any element (w-*, h-*, p-*, m-*, bg-*,
rounded-*, shadow-*, dark:*, ios:* / android:*, glass:*, alpha suffix /N, arbitrary prefix-[value]).
Examples#
Toolbar with spacer#
Copied!
<native:row class="w-full px-4 py-2 items-center"> <native:text class="text-xl font-bold text-theme-on-surface">Title</native:text> <native:spacer /> <native:icon name="search" :size="24" class="text-theme-on-surface" /></native:row>
Evenly spaced items#
Copied!
<native:row class="w-full justify-evenly"> <native:text class="text-theme-on-surface">One</native:text> <native:text class="text-theme-on-surface">Two</native:text> <native:text class="text-theme-on-surface">Three</native:text></native:row>
Inline label and value#
Copied!
<native:row class="w-full justify-between items-center"> <native:text class="text-base text-theme-on-surface-variant">Status</native:text> <native:row class="gap-1 items-center"> <native:icon name="check" color="#22C55E" :size="16" /> <native:text class="text-base font-semibold text-green-500">Active</native:text> </native:row></native:row>
Element#
Copied!
use Native\Mobile\Edge\Elements\Row;use Native\Mobile\Edge\Elements\Text; Row::make( Text::make('Left'), Text::make('Right'),)->gap(8)->alignItems(1);
make(Element ...$children)- Create a row with children. Layout / style fluent methods are inherited from the baseElementclass — see Layout & Styling
NativePHP
Bring your
Laravel
skills to the
desktop.
Cloud Platform
Bifrost
Build your NativePHP apps
in the cloud.
Ship it!
Plans from $10/mo
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