opencoredev
islandcn
The open-source Dynamic Island for React, installed with shadcn.
Documentation snapshot
README 快照
翻译暂时拿不到。
机器翻译的项目简介,仅供参考。原文在下方,也可以直接用浏览器自带的整页翻译 (Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」)。
下面正文是项目自己的英文 README。想读全文就用浏览器自带的整页翻译: Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」; 手机浏览器一般在菜单里。
本页保存的是公开项目资料快照,阅读过程不需要连接 GitHub。
islandcn
A Dynamic Island-style component for any React app, installed with shadcn. Show an upload, a timer, a song, a ride on its way, an incoming call or a recording in one island at the top of your app, and shape each activity around your app’s own actions.
npx shadcn@latest add https://islandcn.dev/r/island-core.json
"use client";
import { Island, IslandProvider, useIsland } from "@/lib/island";
// Mount once near the root.
;
// Then, from any component inside it:
const island = useIsland();
const upload = island.start({
id: "upload",
label: "Uploading report.pdf",
compact: { leading: , trailing: },
expanded: { center: report.pdf, bottom: },
});
upload.update({ compact: { trailing: } });
upload.end();
What’s here
- The engine (
lib/island/, registry itemisland-core): the activity stack, four presentations (idle, compact, the split, expanded), springs fitted to frame-by-frame recordings of the real island, long-press, alerts and reduced motion. React only. - Presets (
components/islandcn/): upload, timer, now playing, incoming call, ride or delivery ETA, recording, nearby transfer, battery and the split, each one file on the engine, plus the content kit they share. - The playground (
/playground): build an island for your app from a preset or a blank activity, fire every action, tune the motion and copy the install command and the code. - The site and docs (
app/,docs/content/).
Coding agents can use the optional islandcn-skill registry item as an install helper; see /docs/agent-skill.
Develop
pnpm install
pnpm dev # http://localhost:3000
pnpm typecheck
pnpm build # builds the registry into public/r, then the site
Read AGENTS.md before changing anything.
The recordings the motion was fitted to are not in this repo. /lab still plays every transition from its built-in sequences in pnpm dev; /compare, which sets the web side against the recordings, has nothing to show, and the one test that reads them is skipped.
License
MIT, copyright (c) 2026 Leo. See LICENSE. islandcn copies the look and motion of Apple’s island, but none of Apple’s assets. It is not affiliated with Apple. Dynamic Island is a trademark of Apple Inc.
Official distribution
获取与安装
暂未发现可确认的官方软件包地址
当前 README 快照没有出现 npm、PyPI、Crates.io、pub.dev 等官方包页链接。本站不会根据仓库名称猜测下载地址。
本站不托管项目文件;需要安装时,请以项目维护者发布的官方文档为准。
Before installing
使用前核验
本站保存公开资料用于阅读,不代表安全审计或功能背书。安装前请核对许可证、依赖来源和发布签名,不要直接运行来源不明的二进制文件或高权限脚本。