Chetan Verma

Floating Action Menu

Buttons 1.5K

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.5K
  • Video Player

    Video Player

    1.3K
  • Stacked Cards Interaction

    Stacked Cards Interaction

    796
  • Dropdowm Menu

    Dropdowm Menu

    548
  • Input With Tags

    Input With Tags

    524
  • Avatar Group

    Avatar Group

    505
  • Stacking Navbar

    Stacking Navbar

    334
  • Audio Player

    Audio Player

    332

More in Buttons

View all
  • Button Save

    Button Save

    46
  • Button

    Button

    20
  • Eclipse Button

    Eclipse Button

    5
  • Button

    Button

    32
  • Button

    Button

    6
  • Button

    Button

    14
  • Button Group

    Button Group

    37
  • Split Button

    Split Button

    32