DesktopUpdatePrompt
Exhaustive update-ready UX for automatic restart and Windows manual installer paths.
All components · Theme builder · Implementation source
Live preview
Open live desktop-update-prompt preview
Native actions require a desktop host. This browser preview shows the shipped surface with host actions disabled.
Install
netscript ui:add desktop-update-promptUsage and examples
The preview runs this JSX with the installed components. Import any composed primitives from your UI directory.
import { useState } from 'preact/hooks';
import { DesktopUpdatePrompt } from '@app/components/ui/desktop-update-prompt.tsx';
export function Example() {
const [value, setValue] = useState('standard');
const [open, setOpen] = useState(false);
const [notice, report] = useState('');
return (<><div><DesktopUpdatePrompt event={ {applyMode:"manual",version:"1.2.0",manualUpdateUrl:"https://example.com/download"} } /></div><p role="status">{notice}</p></>);
}Props
Generated from native deno doc --json --private over the shipped implementation. Compound component props retain their owning interface; native attributes pass through where declared.
| Owner | Prop | Type | Optional | Description |
|---|---|---|---|---|
DesktopUpdatePromptProps | event | AutoUpdateReadyEvent | No | Discriminated ready event emitted by `@netscript/sdk/auto-update`. |
DesktopUpdatePromptProps | onRestart | () => void | Yes | Optional host callback for an automatic update restart action. |
DesktopUpdatePromptProps | class | string | Yes | Additional root class name. |
Keyboard
No S3 keyboard contract is registered for this item. Native controls retain browser keyboard behavior.
Tokens
No S3 token contract is registered for this item.
CSS custom properties referenced directly: --ns-border, --ns-border-width, --ns-card, --ns-card-padding, --ns-control-height-sm, --ns-control-padding-x-sm, --ns-ease-fast, --ns-fg, --ns-focus-ring-offset, --ns-focus-ring-width, --ns-font-sans, --ns-gray-12, --ns-info-border, --ns-info-subtle, --ns-info-text, --ns-leading-body, --ns-leading-normal, --ns-leading-small, --ns-leading-strong, --ns-leading-tight, --ns-muted-fg, --ns-primary, --ns-primary-fg, --ns-primary-hover, --ns-primary-stroke, --ns-radius-card, --ns-radius-control, --ns-radius-md, --ns-radius-sm, --ns-ring, --ns-space-1, --ns-space-2, --ns-space-3, --ns-space-4, --ns-state-disabled-opacity, --ns-state-pressed-opacity, --ns-surface, --ns-text-body, --ns-text-sm, --ns-text-small, --ns-text-strong, --ns-text-xs, --ns-tracking-body, --ns-tracking-small, --ns-tracking-strong, --ns-warning, --ns-weight-body, --ns-weight-small, --ns-weight-strong.
Contract and compatibility
This registry item ships without an S3 entry. Implementation prop documentation is authoritative.