Features
The presentation layer of the pCloud toolchain: @kud/pcloud provides the types, formatters and rewind engine, this package renders them — file listings, change history, shares, sync health, and the assembled browser — and @kud/pcloud-cli consumes them.
- Presentation-only lists — files, changes, shares, trash, public links, revisions and sync health; props in, no fetching, no input handling
- Controlled selection — pass
selectedandrows, own the key handling yourself - Assembled browser —
PCloudBrowsermounts the lists into six tabs as a full interactive client - Host-provided extras — the Sync and Settings tabs appear only when the host supplies a provider
- Never colour alone — glyphs, labels and positional
rwcdcarry every state
Install
npm install @kud/pcloud-inkink (>=7) and react (>=19) are peer dependencies.
Usage
Every list component is presentation-only — props in, no data fetching, no input handling. The consuming surface owns selection, navigation and loading, so the same component composes into a one-shot CLI command or a pane in a larger dashboard.
import { render } from "ink";
import { FileList, sortItems } from "@kud/pcloud-ink";
const { unmount } = render(
<FileList items={sortItems(contents)} rows={contents.length} />,
);
unmount();