Skip to main content
Complete API documentation for all components in the Corti Dictation Web Component library.

Component Overview

The library provides two ways to use components:
  1. <corti-dictation> - Opinionated, all-in-one component (recommended for most use cases)
  2. Modular Components - Individual components for custom UI implementations
Modular components (dictation-recording-button, dictation-settings-menu, dictation-device-selector, dictation-language-selector) require a <dictation-root> parent component to provide context. They cannot be used standalone.

Events

Events should be subscribed to on <corti-dictation> or <dictation-root> components only. Individual modular components do not dispatch these events directly.
All events bubble and can be listened to on the root component:

<corti-dictation>

The main opinionated component that includes all functionality with a built-in UI.

Properties

Methods


<dictation-root>

Context provider component that manages authentication, configuration, and shared state. Required parent for all modular components.
All modular components must be children of <dictation-root> to receive context.

Properties


<dictation-recording-button>

Standalone recording button component with audio visualization.
Must be a child of <dictation-root>.

Properties

Methods


<dictation-settings-menu>

Settings menu component with device and language selectors.
Must be a child of <dictation-root>.

Properties


<dictation-device-selector>

Device selection dropdown component.
Must be a child of <dictation-root>.

Properties


<dictation-language-selector>

Language selection dropdown component.
Must be a child of <dictation-root>.

Properties


<dictation-keybinding-selector>

Keybinding configuration component for setting keyboard shortcuts. Supports both push-to-talk and toggle-to-talk keybindings.
Must be a child of <dictation-root>.

Properties


Attribute Formatting

When using attributes (instead of JavaScript properties), follow these guidelines:
  • Boolean attributes: Use the attribute name to set true, omit it to set false
  • String attributes: Use the attribute value directly
  • Array attributes: Use comma-separated values
  • Object/Complex types: Must be set via JavaScript properties, not attributes

See also

  • Overview — installation, quickstart, and usage modes
  • Authentication — access tokens and automatic refresh
  • Styling — CSS custom properties and theming