ChatKit (React)
<ChatKit control={control} {...props} />The ChatKit component takes the control object returned by useChatKit
and renders the <openai-chatkit> web component for you. It forwards any extra
props to the underlying element, including standard DOM attributes and React
event handlers.
type ChatKitProps = React.HTMLAttributes<OpenAIChatKit> & { control: ChatKitControl;};control— Required object fromuseChatKit. Provides stable options, extracted event handlers, and thesetInstancecallback that keeps the hook and component in sync. Pass it verbatim:<ChatKit control={control} />....props— Any additional props are spread onto<openai-chatkit>. Use this for layout attributes (className,style), accessibility props (aria-*).