@dialstack/sdk / pure / registerComponents
Function: registerComponents()
TypeScript
function registerComponents(): void;
Defined in: sdk/src/core/initialize-pure.ts:154
Register Web Components manually
Call this to register the DialStack Web Components when using the pure entry point. This is only needed in browser environments where you want to use dialstack.create().
Returns
void
Example
TypeScript
import { loadDialstackAndInitialize, registerComponents } from '@dialstack/sdk/pure';
// Register components when ready (e.g., after hydration)
if (typeof window !== 'undefined') {
registerComponents();
}