Kinetik UI

Bloom Menu

.md

A floating action button that blooms: the plus turns, a halo opens and actions spring out one by one.

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

Installation

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

Install manually

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

Usage

import { BloomMenu } from '@/components/kinetik/bloom-menu';

<BloomMenu
  style={{ position: 'absolute', right: 16, bottom: 24 }}
  actions={[
    { key: 'photo', label: 'Photo', icon: <CameraIcon />, onPress: addPhoto },
    { key: 'note', label: 'Note', icon: <NoteIcon />, onPress: addNote },
    { key: 'voice', label: 'Voice memo', icon: <MicIcon />, onPress: recordVoice },
  ]}
/>;

Position the menu with style, usually in a bottom corner. Its box holds the open menu but lets touches through where it is empty. layout="arc" fans icons around the button instead of stacking labelled rows.

When to use

  • A screen whose main job is creating things of a few kinds: a note, a photo, a voice memo.
  • When two to five creation actions would otherwise crowd a toolbar.

When not to use

  • A single action. Use a plain floating button.
  • Navigation. Use tabs or a dock; a floating menu hides where people can go.

Notes

  • Pass open and onOpenChange to dim the screen behind it or to close it when the user taps elsewhere; the demo does both.
  • Actions are listed nearest the button first. The arc layout has no visible labels, so keep its icons unmistakable.
  • With reduced motion the actions appear in place.

Props

BloomMenuProps

PropTypeDefaultDescription
actionsrequiredreadonly BloomAction[]—Two to five actions, nearest the button first.
layout'column' | 'arc''column'`column` stacks labelled actions above the button; `arc` fans icons around it. Defaults to `column`.
openboolean—Controlled state. Leave unset to let the menu keep its own.
defaultOpenbooleanfalse
onOpenChange(open: boolean) => void—
accessibilityLabelstring'Create'Name of the main button. Defaults to 'Create'.
hapticsbooleantrueA light tap as it opens and as an action is chosen. Defaults to true.
styleStyleProp<ViewStyle>—Position the menu with this, usually absolutely in a corner. The box is large enough to hold the open menu but lets touches through where empty.

Performance and accessibility

Performance

Budget
One spring per action plus one for the button; views only, transforms and opacity. 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 · 148 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
Actions appear in place without travelling or staggering; the halo and the cross still change.
Screen readers
The main button reports expanded; closed actions are hidden from screen readers. The escape gesture closes it.
Touch target
60 pt main button, 48 pt actions; in the column layout the label is part of the action's target.

Source files

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