Note
This project is still in development and may not be stable.
npm install @kangju2000/dynamic-island
import React from 'react';
import { DynamicIsland, DynamicIslandMode } from '@kangju2000/dynamic-island';
function App() {
const [mode, setMode] = React.useState<DynamicIslandMode>(DynamicIslandMode.default);
return (
<DynamicIsland
variant={mode}
expanded={<DynamicIsland.Expanded>{/** expanded content */}</DynamicIsland.Expanded>}
compact={<DynamicIsland.Compact leading={/** leading content */} trailing={/** trailing content */} />}
custom={<DynamicIsland.Custom>{/** custom content */}</DynamicIsland.Custom>}
/>
);
}