Kinetik UI

Peek Folder

.md

Tiles tucked in a frosted-glass folder pocket, glowing through it; tap or hover and they spring up and fan out.

v1.0.0Live on web@shopify/react-native-skiareact-native-reanimatedreact-native-svgreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add peek-folder

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/peek-folder.json

Install manually

  1. Install dependencies
    npx expo install @shopify/react-native-skia react-native-reanimated react-native-svg react-native-worklets
  2. Copy the source files
    • components/kinetik/peek-folder.tsx
    View source files

Usage

import { PeekFolder } from '@/components/kinetik/peek-folder';

<PeekFolder
  label="Design assets"
  items={[
    { glyph: typeIconPath, color: '#FF6A00' },
    { glyph: shapesIconPath, color: '#111' },
    { glyph: sparkIconPath, color: '#0A84FF' },
  ]}
  onOpen={() => router.push('/assets')}
/>;

When to use

  • A playful entry point to a collection: a folder, an album, a kit.

When not to use

  • File browsers with many folders: the blur and the motion are for a few hero items.

Notes

  • glyph is an SVG path on a 24 pt grid, drawn as a bold stroke. Join an icon's paths with spaces.
  • Uncontrolled by default; pass open and onOpenChange to drive it yourself.
  • hover lifts the tiles while a pointer is over the folder on the web.
  • The glass is a Skia backdrop blur clipped to the pocket, so the tiles' colours glow through it.

Props

PeekFolderProps

PropTypeDefaultDescription
labelrequiredstring—Read by screen readers, e.g. "Fonts".
itemsrequiredreadonly FolderItem[]—Up to three tiles, left, middle, right.
openboolean—Open state, if you control it.
onOpenChange(open: boolean) => void—
onOpen() => void—Shows the round arrow button on the pocket.
hoverbooleantrueLift the tiles while a pointer hovers (web), without opening. Defaults to true.
hapticsbooleantrueA tap as the folder opens and closes. Defaults to true.
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
One Skia canvas: the tiles move by transforms from one UI-thread spring and the glass is a single backdrop blur. Nothing animates at rest.
Measured

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

Real-device measurement pending.

Accessibility

Reduced motion
The tiles jump between tucked and lifted without the spring or the drop-in.
Screen readers
The folder is a button named by `label` with its expanded state; the arrow is a separate "Open …" button.
Touch target
The whole folder is the toggle; the arrow button is 44 pt.

Source files

components/kinetik/peek-folder.tsx is in the Code tab of the preview above.