Chetan Verma

Floating Action Menu

Buttons 1.6K

About

A floating action menu component made with framer motion and tailwind css.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Floating Action Menu to your project and fits it to your theme.

Code

How Floating Action Menu is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import FloatingActionMenu from "@/components/ui/floating-action-menu"
import { Settings, User, LogOut } from "lucide-react";

export const FloatingActionMenuDemo = () => {
    return (
          <FloatingActionMenu
          className="relative"
          options={[
            {
              label: "Account",
              Icon: <User className="w-4 h-4" />,
              onClick: () => console.log("Account clicked"),
            },
            {
              label: "Settings",
              Icon: <Settings className="w-4 h-4" />,
              onClick: () => console.log("Settings clicked"),
            },
            {
              label: "Logout",
              Icon: <LogOut className="w-4 h-4" />,
              onClick: () => console.log("Logout clicked"),
            },
          ]}
        />
    )
}

export { FloatingActionMenuDemo }

Dependencies

More by Chetan Verma

View all
  • Animated Tabs

    Animated Tabs

    1.6K
  • Video Player

    Video Player

    1.4K
  • Stacked Cards Interaction

    Stacked Cards Interaction

    831
  • Dropdowm Menu

    Dropdowm Menu

    613
  • Input With Tags

    Input With Tags

    543
  • Avatar Group

    Avatar Group

    517
  • Audio Player

    Audio Player

    368
  • Stacking Navbar

    Stacking Navbar

    362

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113