Dynamic Island

Introduction

A small React component for interfaces that move between states.

React Dynamic Island turns a map of React views into one animated surface. Give each state its content and dimensions, then change a single value to move between them.

Use it for compact status indicators, media controls, notifications, or a moment of feedback. You own the state and the UI; the component handles the container animation and content transition with Motion.

Get started

How it works

An island has three parts:

PartPurpose
componentsA map of named states. Each state defines an animation target and a render function.
valueThe key of the state currently shown. Your application controls it.
transitionMotion settings for moving the container between targets.
<DynamicIsland
  value="idle"
  components={{
    idle: {
      animatedConfig: { width: 120, height: 36, borderRadius: 24 },
      render: () => <span>Ready</span>,
    },
  }}
/>

This is the configuration shape. The usage guide includes a complete example with styles and a state toggle.

What is included

The package exports DynamicIsland, ContentWrapper, and their TypeScript types. It provides a spring transition by default, per-state motion overrides, and an animated wrapper for entering and exiting content.

The phone, music, payment, and other scenes on this site are application examples built with the component. They are not presets or integrations exported by the package.

Make it your own

Start with a few meaningful states. Define their dimensions, render your own components, and connect value to your application's events. Use the animation guide to tune the movement and the accessibility guide to account for keyboard, screen reader, and reduced motion users.