Components
Menus
Disclosable FAB

Disclosable FAB

Beautifully designed floating action button component with Tailwind CSS and Framer Motion. Copy, paste, and customize to enhance your web projects effortlessly.

FAB Button Tailwind CSS Framer Motion

Installation

Run the following command:

npx gopx-webui add disclosable-fab

Props

PropTypeRequiredDescription
menuItemsMenuItemProps[]YesArray of menu items to be displayed when FAB is opened
widthnumberNoWidth of the expanded FAB menu in pixels. Defaults to 320
heightnumberNoHeight of the expanded FAB menu in pixels. Defaults to 280
backgroundColorstringNoBackground color class for light mode. Defaults to "bg-white"
darkBackgroundColorstringNoBackground color class for dark mode. Defaults to "dark:bg-[#1f1f1f]"

MenuItemProps

PropTypeRequiredDescription
titlestringYesTitle text for the menu item
descriptionstringYesDescription text for the menu item
iconLucideIconYesLucide icon component to be displayed for the menu item
onClick() => voidNoOptional click handler for the menu item