Mehi

Gooey Actions

Buttons 19

About

A floating action button whose children separate out of the trigger like liquid metal, using an SVG goo filter.

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

Code

How Gooey Actions is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { GooeyActions } from "@/components/ui/gooey-actions";

const Icon = ({ d }: { d: string }) => (
  <svg
    viewBox="0 0 24 24"
    fill="none"
    stroke="currentColor"
    strokeWidth={1.8}
    strokeLinecap="round"
    strokeLinejoin="round"
    className="h-5 w-5"
  >
    <path d={d} />
  </svg>
);

// Hoisted so the fan is not rebuilt on every render.
const ACTIONS = [
  { id: "note", label: "New note", icon: <Icon d="M12 5v14M5 12h14" /> },
  { id: "share", label: "Share", icon: <Icon d="M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7M12 3v13M8 7l4-4 4 4" /> },
  { id: "star", label: "Favourite", icon: <Icon d="m12 3 2.9 5.9 6.5.9-4.7 4.6 1.1 6.5-5.8-3-5.8 3 1.1-6.5L2.6 9.8l6.5-.9L12 3Z" /> },
  { id: "trash", label: "Delete", icon: <Icon d="M4 7h16M9 7V5h6v2M6 7l1 13h10l1-13" /> },
];

export default function GooeyActionsDemo() {
  return (
    <div className="flex min-h-[460px] w-full items-end justify-center p-12">
      <GooeyActions
        label="Compose"
        actions={ACTIONS}
        radius={128}
        arc={[-150, -30]}
        defaultOpen
      />
    </div>
  );
}

Dependencies

More by Mehi

View all
  • Border Beam Panel

    Border Beam Panel

    993
  • Compare Reveal

    Compare Reveal

    329
  • Decrypt Text

    Decrypt Text

    259
  • Holo Card

    Holo Card

    246
  • Magnetic Dock

    Magnetic Dock

    177
  • Luminous Topography

    Luminous Topography

    117
  • Lens Card

    Lens Card

    92
  • Animated Grid

    Animated Grid

    68

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1

Explore more

Part of Motiq — browse the full library on 21st.dev.