- Getting Started
- Architecture
- The Basics
- Digging Deeper
-
EDGE Components
- Introduction
- Accordion
- Activity Indicator
- Badge
- Bottom Navigation
- Bottom Sheet
- Button
- Button Group
- Canvas
- Carousel
- Checkbox
- Chip
- Column
- Divider
- Floating Action Button
- 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
Floating Action Button
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 Material-style floating action button that floats above your screen's content, pinned to a bottom corner. On the
wire a <native:fab> is a pressable — pre-styled as a FAB — so @tap, press feedback, and url
navigation all behave exactly like any other pressable, on both platforms.
<native:fab icon="add" @tap="createTask" />
@tap names a public method on your component. Give it a label to get an extended FAB (icon + text pill):
<native:fab icon="edit" label="Compose" @tap="compose" />
Props#
icon- A named icon — the cross-platform fallback (required for a visible fab unless a platform icon is given)ios-icon/android-icon- Per-platform icon overrides: an enum case (App\Icons\Ios,App\Icons\Android,App\Icons\AndroidOutlined) or a raw symbol string.ios/androidare accepted as shorthand (optional). Same contract as<native:icon>label- Text label → renders as an extended FAB (optional)url- Navigate on tap, when no@taphandler is set (optional)size-small,regular(default), orlarge(optional)position- Horizontal corner:end(default) orstart(optional)bottom-offset- Distance from the container bottom in dp (optional, default:16)edge-offset- Distance from the side edge in dp (optional, default:16)corner-radius- Override the default circular radius (optional)container-color- Background color. Hex string (optional, default: the themeprimarytoken)content-color- Icon and label color. Hex string (optional, default: the themeon-primarytoken)elevation- Shadow elevation (optional, default:6)
By default the fab picks up your theme tokens — primary for the container and
on-primary for its content — so it re-skins with the rest of the app. Only reach for container-color /
content-color when a fab genuinely shouldn't follow the theme.
Platform icons#
@use('App\Icons\Ios')@use('App\Icons\Android') <native:fab :ios-icon="Ios::Plus" :android-icon="Android::Add" @tap="createTask" />
An enum-only fab (no shared icon) is fine — each platform resolves its own case.
Positioning#
{{-- Bottom-left, lifted clear of a bottom bar --}}<native:fab icon="mic" position="start" bottom-offset="88" @tap="record" />
Chrome, not layout#
The fab is inline-only chrome — there is no layout builder for it. It composes freely with the rest of the
chrome system: an inline <native:top-bar> or a layout's TabBar render
around it, and the fab floats above the screen's content either way.
in no time