Kinetik UI

Empty State

.md

A calm empty screen: three cards rise and fan out, a blue dot lands, and the next step settles in beneath.

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

Installation

Kinetik CLI
npx kinetik-ui add empty-state

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/empty-state.json

Install manually

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

Usage

import { EmptyState } from '@/components/kinetik/empty-state';

<EmptyState
  icon={<BookmarkIcon color={theme.colors.azure} />}
  title="No saved places yet"
  description="Tap the bookmark on any place you like and it will wait for you here."
  action={{ label: 'Explore places', onPress: openExplore }}
  secondaryAction={{ label: 'How saving works', onPress: openHelp }}
/>;

The illustration is made of three cards, with your icon on the front one, so it takes the theme's colours in light and dark without any artwork.

When to use

  • Lists and screens with nothing in them yet: a new account, an empty inbox, a search with no results.
  • Moments where the next step is clear and worth a button.

When not to use

  • While content is loading. Use Skeleton Sweep.
  • Errors. Say what went wrong and how to fix it instead.

Notes

  • The entrance plays once. Pass a new playKey, such as the current filter, to replay it when the reason for being empty changes.
  • Write the title as a plain statement and the description as what to do next.
  • With reduced motion everything is in place from the start.

Props

EmptyStateProps

PropTypeDefaultDescription
titlerequiredstring—
descriptionstring—
iconReactNode—Drawn on the front card of the illustration, e.g. an inbox or search icon.
actionEmptyStateAction—The next step, as a solid button.
secondaryActionEmptyStateAction—A quieter alternative, as a text button.
playKeystring | number—Replays the entrance when it changes, e.g. the current filter.
testIDstring—
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
Plain views and five shared values that play once on mount. 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 · 143 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
Everything is in place from the start.
Screen readers
The illustration is hidden. The title is a header, followed by the description and the action buttons.
Touch target
The main button is 48 pt tall and the text button 48 pt.

Source files

components/kinetik/empty-state.tsx is in the Code tab of the preview above.