Skip to content

Settings

App detail header

AppDetailHeader — exported from the library at `src/components/apps/AppDetailHeader.tsx`. Awaiting a written description.
Available
Ports as-is

Examples

Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.

App detail header

Rendered live from Storybook

Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.

Props

The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.

PropTypeDefaultDescription
onBack*() => void—Undocumented — add TSDoc to the prop in the library.
appIdstring—Id of the app on screen, handed back to `onUninstall`.
appNamestring—Name of the app on screen, handed back to `onUninstall` for the host's toast.
onManageApp() => void—"Manage app" — the source routed to `/settings?tab=apps`.
onUninstall(appId: string, appName?: string) => void—"Uninstall" — only offered when `appId` is set, matching the source's guard.
classNamestring—Undocumented — add TSDoc to the prop in the library.

Reference

Transcribed from the component audit. If this disagrees with the source, the source is right.

Source
src/components/apps/AppDetailHeader.tsx
Portability
Copies across unchanged — only the utils import path moves.