Kinetik UI

Lift Menu

.md

Press and hold: the content sinks, then lifts above a dimmed screen while its actions unfold beneath it.

v1.0.0Live on webreact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add lift-menu

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/lift-menu.json

Install manually

  1. Install dependencies
    npx expo install react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/lift-menu.tsx
    View source files

Usage

import { LiftMenu } from '@/components/kinetik/lift-menu';

<LiftMenu
  accessibilityLabel={photo.title}
  onPress={() => openPhoto(photo)}
  actions={[
    { key: 'share', label: 'Share', onPress: share },
    { key: 'delete', label: 'Delete', destructive: true, onPress: remove },
  ]}
>
  <PhotoTile photo={photo} />
</LiftMenu>;

Wrap any card, tile or row. A tap runs onPress; holding for delay ms lifts the content and shows its actions.

When to use

  • Shortcuts on items people already open with a tap: photos, messages, files, places.
  • Grids and lists where per-item buttons would crowd the layout.

When not to use

  • The only way to reach an action. Long presses are hard to discover, so offer the same actions elsewhere too, for example in a detail screen.
  • Content that changes while it is lifted, such as video. The lifted copy is a second render of children.

Notes

  • The lifted content is a copy of children rendered in a modal at the original's position; the original is hidden meanwhile. Keep children free of side effects on mount.
  • When there is no room for the menu below, the content moves up first. The menu opens towards the middle of the screen.
  • Every action is a custom accessibility action on the content, so screen reader users pick actions without holding.
  • With reduced motion nothing sinks or lifts; the menu appears at once.

Props

LiftMenuProps

PropTypeDefaultDescription
childrenrequiredReactNode—The content that lifts: a card, a photo, a row.
actionsrequiredreadonly LiftMenuAction[]—
accessibilityLabelrequiredstring—Names the content for screen readers. Its actions are offered as custom actions.
onPress() => void—A plain tap, e.g. to open the item.
delaynumber380How long to hold before it lifts, in ms. Defaults to 380.
menuWidthnumber240Menu width. Defaults to 240.
hapticsbooleantrueA thud as it lifts. Defaults to true.
testIDstring—
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
A transparent modal mounted only while lifted, holding a second copy of the content. One shared value runs the lift; nothing runs at rest.
Measured

Pixel 9 emulator, API 35, release build · interaction median 0.85× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 168 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
The menu and the dimmed screen appear at once; the content does not sink or lift.
Screen readers
The content is a button with the hint "Hold for actions", and every action is offered as a custom action, so no long press is needed.
Touch target
The content itself is the target; menu rows are 46 pt tall.

Source files

components/kinetik/lift-menu.tsx is in the Code tab of the preview above.