Patterns

Common things to press and hold.

Hold any of these, or right-click them with a mouse.

Message bubbles#

A chat, where each side's menu lines up with its own edge. Set align="end" on your own messages.

Hold a message

Photo tile#

An image in a grid. Repousse.Trigger renders a div, so it can be any shape, and the lifted copy keeps its background.

Hold a photo

Rows that hold more than a button can. Put asChild on an Repousse.Item to make it a real link, and set disabled on what isn't available.

Getting StartedInstall it and make a menu
APIThe parts and their props
StylingOne menu in five looks

Removing an item#

Unmounting the Root ends the close animation on the spot. To let it finish, note the pick in onSelect and remove the item in onClosed.

Book the table
Call the dentist
Renew passport