VFab
TheVFab component is a floating action button that can be positioned on the screen. It extends VBtn with positioning and layout capabilities.
Basic Usage
Positioning
Extended FAB
App Integration
Props
Integrates with Vuetify’s application layout system
Applies transition on initial render
Extends the FAB to show text alongside the icon
Affects the layout size when positioned with
appApplies additional offset from the edge
Controls visibility of the FAB
Position on screen. Format:
[top|bottom] [start|end|center]Uses absolute positioning instead of fixed
Transition to use when showing/hiding
Controls whether FAB is active/visible
Button color
Button size. Options:
x-small, small, default, large, x-largeIcon to display in the FAB
Visual style variant. Options:
elevated, flat, outlined, text, tonal, plainLayout order when using
appIdentifier for the layout item when using
appVBtn Props
TheVFab component accepts all props from VBtn except location and spaced:
roundedelevationrippledisabledloadingtheme- And all other VBtn props
Events
Emitted when visibility changesPayload:
boolean - The new visibility stateSlots
FAB content (text when extended)
prependappendloader
Examples
Controlled Visibility
Extended with Icon
Multiple Sizes
With Offset
Custom Transition
App Layout Integration
With Loading State
Notes
- The FAB uses
position: fixedby default (orabsolutewhenabsoluteprop is true) - When using
app, the FAB integrates with Vuetify’s layout system - The
layoutprop determines if the FAB affects the layout size (adds padding) - Extended FABs automatically size to fit their content
- Default transition is
fab-transitionwhich provides a scale and fade effect