Kinetik UI

Pop Menu

.md

A menu that unfolds from its trigger's corner, rows sliding in one by one, with a highlight under the finger.

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

Installation

Kinetik CLI
npx kinetik-ui add pop-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/pop-menu.json

Install manually

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

Usage

import { PopMenu } from '@/components/kinetik/pop-menu';

<PopMenu
  accessibilityLabel="More actions"
  items={[
    { key: 'share', label: 'Share', onPress: share },
    { key: 'rename', label: 'Rename', onPress: rename },
    { key: 'delete', label: 'Delete', destructive: true, onPress: remove },
  ]}
>
  <MoreIcon />
</PopMenu>;

The children are the trigger's content. Each item can take an icon, a function that receives the colour to draw it in, so destructive rows draw red icons.

When to use

  • Secondary actions on a card, a row or a header: share, rename, move, delete.
  • A short list of actions that would crowd the screen as buttons.

When not to use

  • The main action of a screen. Show it as a button.
  • More than about seven items, or items with sub-menus. Use a sheet.

Notes

  • The menu opens in a transparent modal, so parents with overflow: 'hidden' cannot clip it. It is measured from the trigger and kept 12 pt inside the window, opening upwards when there is no room below.
  • The chosen action runs once the menu has closed, so an action that navigates or opens a sheet does not fight the closing animation.
  • Android's back button closes the menu.
  • With reduced motion the menu appears and closes in place.

Props

PopMenuProps

PropTypeDefaultDescription
itemsrequiredreadonly PopMenuItem[]—
childrenrequiredReactNode—The trigger's content, e.g. a "more" icon.
accessibilityLabelrequiredstring—Names the trigger, e.g. "More actions".
align'start' | 'end''end'Which edge of the trigger the menu lines up with. Defaults to `end`.
widthnumber220Menu width. Defaults to 220.
hapticsbooleantrueA tick on open. Defaults to true.
testIDstring—
styleStyleProp<ViewStyle>—Style for the trigger.

Performance and accessibility

Performance

Budget
A transparent modal with plain views, mounted only while open; one shared value opens it and one tracks the pressed row.
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 · 141 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
The menu appears and closes in place, without growing or the rows sliding.
Screen readers
The trigger is a button with an expanded state; items are menu items, disabled ones marked as such. The modal keeps focus inside; a Close menu button covers the backdrop and the escape gesture closes it.
Touch target
The trigger is at least 44 pt and each row is 46 pt tall.

Source files

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