Kinetik UI

Press Jelly

.md

A primary button that squashes like jelly under the finger and wobbles back on release.

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

Installation

Kinetik CLI
npx kinetik-ui add press-jelly

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/press-jelly.json

Install manually

  1. Install dependencies
    npx expo install react-native-gesture-handler react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/press-jelly.tsx
    View source files

Usage

import { PressJelly } from '@/components/kinetik/press-jelly';

<PressJelly onPress={checkout} size="lg" block>
  Continue
</PressJelly>;

Variants: ember (primary), ice (secondary accent) and surface (neutral). Pass loading while work is in flight; presses are ignored and a spinner replaces the label without changing the button's size.

When to use

  • The one primary action on a screen: continue, buy, send.
  • Moments where a tactile response makes the app feel physical.

When not to use

  • Dense toolbars or lists of actions. A screen full of wobbling buttons stops feeling special.
  • Destructive actions that need a pause. Use Hold to Confirm.

Notes

  • The squash starts on the UI thread the moment the finger lands, so it stays responsive while JavaScript is busy.
  • Moving the finger more than 32 pt away cancels the press.
  • Pass accessibilityLabel when the label is not a plain string.
  • The button sizes to its label; block stretches it to the parent. Position it with style, e.g. style={{ alignSelf: 'center' }}.

Props

PressJellyProps

PropTypeDefaultDescription
childrenrequiredReactNode—Button label. A string gets the variant's text style; any node is rendered as is.
onPress() => void—
variantPressJellyVariant'ember'Defaults to `ember`.
sizePressJellySize'md'`md` is 48 pt tall, `lg` 56 pt. Defaults to `md`.
leadingReactNode—Optional element before the label, e.g. an icon.
disabledbooleanfalse
loadingbooleanfalseShows a spinner and ignores presses.
squishnumber0.6How far the button squashes, 0–1. Defaults to 0.6.
hapticsbooleantruePlays a light tap when the press lands. Defaults to true.
accessibilityLabelstring—Required when `children` is not a string.
accessibilityHintstring—
blockbooleanfalseStretch to the parent's width.
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
Two scale springs per press, started on the UI thread; nothing runs at rest.
Measured

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

Real-device measurement pending.

Accessibility

Reduced motion
A 2% press-in instead of the squash and wobble.
Screen readers
Button role with disabled and busy states; 'activate' presses it.
Touch target
48 pt (md) or 56 pt (lg) tall, at least 96 pt wide.

Source files

components/kinetik/press-jelly.tsx is in the Code tab of the preview above.