Floating Action Button

PRO

A versatile floating action button component with customizable positioning, expandable menus, and smooth animations for primary actions in your application.

Pro Features

Unlock advanced capabilities with the Pro version

Smart Positioning

Flexible positioning system with corner and relative options

Expandable Menus

Create multi-action FABs with smooth expand/collapse animations

Smooth Animations

Framer Motion powered hover, tap, and transition effects

Touch Optimized

Mobile-friendly interactions with proper touch targets

Variant System

Multiple size and color variants for different use cases

Responsive Design

Adapts to different screen sizes and orientations

Installation

Install via CLI

moonui add floating-action-button

Usage

Pro Required

Content Area

The FAB floats above your content and provides quick access to primary actions.

Examples

Basic Floating Action Button

PRO

Simple FAB positioned at bottom-right with primary action

Pro Required

Content Area

The FAB floats above your content and provides quick access to primary actions.

Expandable FAB Menu

PRO

FAB that expands to reveal multiple action options

Pro Required

Expandable FAB Menu

Click the FAB to reveal multiple action options with smooth animations.

Size and Color Variants

PRO

Different sizes and color variants for various use cases

Pro Required

Size Variants

Small

Medium

Large

Color Variants

Default

Secondary

Destructive

Outline

Multiple FAB Positions

PRO

FABs positioned at different corners of the container

Pro Required

Four Corner Positions

FABs can be positioned at any corner

FAB with Content Actions

PRO

Interactive FAB that adds content to the page

Pro Required

Click the + button to add content