SDK/REFERENCE
React API
Everything exported by @edithpro/react.
On this page
EdithProProvider #
Takes every Configuration option and callback as props, plus children.
EdithProButton #
PropTypeDescription
childrenReactNodeButton content. Default “Record Screen”.
classNamestringYour classes.
styleCSSPropertiesInline styles.
disabledbooleanDisable it yourself. It is also disabled until the SDK is ready.
onClick() => voidRuns before the popup opens.
useEdithPro() #
types.ts
interface EdithProContextValue { isReady: boolean; isOpen: boolean; isRecording: boolean; isPaused: boolean; recordingId: string | null; duration: number; open(): void; close(): void; record(settings?: RecordSettings): Promise<Recording>; startCapture(id: string, settings?: { cameraId?; micId?; quality? }): void; pause(): void; resume(): void; stop(): void; delete(): void; restart(settings?: RecordSettings): Promise<void>;}
Was this page helpful? @edithpro/sdk 1.0.5 · Edit this page