Overview
Use the imperative API when you integrate with vanilla JavaScript, Vue, Angular, or other non-React stacks, or when you need multiple dynamic editors or a custom overlay system. This guide follows JavaScript Integration, Switching Between Fields, and related notes inSuki Dictation SDK.md.
Prerequisites
- Installation of
@suki-sdk/dictationand@suki-sdk/core - Authentication configured with
SukiAuthManager
Create the client
JavaScript
Call show()
JavaScript
rootElement). See Configuration reference for every ShowOptions field.
Switching between fields
Callingshow() again replaces the active session. You do not need to call hide() manually between fields:
JavaScript
hide on the previous context and then show for the next; manual cleanup is not required.
Single client per scope
Use oneDictationClient instance per page scope so you do not get multiple overlays. See Error handling.
Next steps
- Modes and callbacks for
in-fieldvsscratchpadand callback payloads - React integration if you move to React
- Quickstart for a full minimal example