Skip to main content

Overview

This section provides a detailed reference for all React components available in the Suki Web SDK.

SukiAssistant Component

The SukiAssistant is the main UI component that renders the Suki Assistant interface within your React application. It manages the display and interaction for ambient sessions. The code snippet below shows how to use the SukiAssistant component to render the Suki Assistant interface within your React application.
React
import { SukiAssistant, SukiProvider } from '@suki-sdk/react';

function App() {
  return (
    <SukiProvider>
      <SukiAssistant
        // props
      />
    </SukiProvider>
  );
}

Available Props

Type Safety For onClose Prop

The SukiAssistant component employs conditional typing to ensure type safety for the onClose prop, which is dynamically determined by the uiOptions.showCloseButton configuration:

Next Steps

Refer to the Examples Section to learn more about how to use the Web SDK in your application.