@assistant-ui/react
Version:
TypeScript/React library for AI Chat
23 lines • 911 B
TypeScript
import type { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton.js";
declare const useComposerDictate: () => (() => void) | null;
export declare namespace ComposerPrimitiveDictate {
type Element = ActionButtonElement;
type Props = ActionButtonProps<typeof useComposerDictate>;
}
/**
* A button that starts dictation to convert voice to text.
*
* Requires a DictationAdapter to be configured in the runtime.
*
* @example
* ```tsx
* <ComposerPrimitive.Dictate>
* <MicIcon />
* </ComposerPrimitive.Dictate>
* ```
*/
export declare const ComposerPrimitiveDictate: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
asChild?: boolean;
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
export {};
//# sourceMappingURL=ComposerDictate.d.ts.map