Back to Components
Buttons

Floating Action Button

Speed dial style floating action button with expandable quick actions.

PropsUsage ExampleVariations

Quick actions stay within reach as you work.

New note
Schedule
Automate

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/floating-action-button.tsx

Installation

Using shadcn CLI

npx shadcn add floating-action-button --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge

Related Buttons Components