A compact action button that springs into a responsive grid of customizable menu items.
ExpandingMenuItem[]
Six default actions
string
Add item
boolean
false
(item) => void
Click on the icon in the top right of the example preview to view the source code for specific variants.
This component is inspired by various open-source projects and patterns. Please verify licenses and implementation details before using in production.
Choose an item to add
import { ExpandingMenu } from "@/components/ui/expanding-menu"
export default function Page() { return <ExpandingMenu onItemSelect={(item) => console.log(item.label)} /> }