- 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
Divider
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 thin horizontal line separator. Renders as a 1pt rule. Color resolves from the border-* class if set, otherwise
the platform separator color (UIColor.separator on iOS, Material outlineVariant on Android).
Copied!
<native:divider />
<native:horizontal-divider /> is an equivalent divider component exposed for use inside side navigation. It
emits its own horizontal_divider element but renders the same visual rule as <native:divider />.
Supported Tailwind classes#
The classes that affect how a divider renders:
| Class | Effect |
|---|---|
border-{palette}-{shade}, border-[#hex], border-theme-{token} |
Line color |
opacity-*, opacity-[0.5] |
Line opacity |
m-*, mx-*, my-*, mt-* / mr-* / mb-* / ml-* |
Spacing around the divider |
dark:border-* |
Dark-mode color override |
ios:border-*, android:border-* |
Platform-specific color |
Examples#
Basic separator#
Copied!
<native:column class="w-full gap-4 p-4"> <native:text class="text-lg font-bold text-theme-on-surface-variant">Section One</native:text> <native:text class="text-theme-on-surface-variant">Some content here.</native:text> <native:divider /> <native:text class="text-lg font-bold text-theme-on-surface-variant">Section Two</native:text> <native:text class="text-theme-on-surface-variant">More content here.</native:text></native:column>
Themed divider with margin#
Copied!
<native:divider class="border-theme-outline my-2 mx-4" />
In a list#
Copied!
<native:column class="w-full"> @foreach($items as $item) <native:column class="w-full p-4"> <native:text class="text-base text-theme-on-surface-variant">{{ $item->name }}</native:text> </native:column> @unless($loop->last) <native:divider /> @endunless @endforeach</native:column>
Thicker rule (use a column)#
Copied!
<native:column class="w-full h-1 bg-theme-outline my-4" />
Element#
Copied!
use Native\Mobile\Edge\Elements\Divider; Divider::make()->border(1, '#E2E8F0');
make()- Create a dividerborder(float $width, string $color)- Set the line width and color
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