Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
ModuleConnectionStatus
Renders the shared live connection indicator for an opted-in module.
Import
import { ModuleConnectionStatus } from "@dartwic/interface-sdk/ui";Declaration
export const ModuleConnectionStatus: HostComponent<ModuleConnectionStatusProps>;ModuleConnectionStatusProps
Props for the shared opt-in module connection indicator.
export interface ModuleConnectionStatusProps extends HostComponentProps {
presentation: {
channel: string;
label?: string;
endpoint?: string;
connectedValue?: string | number | boolean;
};
showText?: boolean;
compact?: boolean;
}| Prop | Type | Requirement | Description |
|---|---|---|---|
presentation | `{ | ||
channel: string; | |||
label?: string; | |||
endpoint?: string; | |||
connectedValue?: string | number | boolean; | |||
}` | Required | ||
showText | boolean | Optional | |
compact | boolean | Optional | |
className | string | Optional | Additional Tailwind or host CSS classes. |
children | HostNode | Optional | Child content rendered by the host component. |
id | string | Optional | Optional DOM identifier. |
style | Record<string, unknown> | Optional | Inline style values passed to the host component. |