diff --git a/src/components/Video.tsx b/src/components/Video.tsx index 610c300..3a2fba5 100644 --- a/src/components/Video.tsx +++ b/src/components/Video.tsx @@ -1,5 +1,5 @@ import { buildSrc } from "@imagekit/javascript"; -import React, { useContext } from "react"; +import React, { forwardRef, useContext } from "react"; import type { SrcProps } from "../interface"; import { ImageKitContext } from "../provider/ImageKit"; @@ -21,8 +21,21 @@ export type IKVideoProps = Omit & SrcProp * transformation={[{ width: 500, height: 500 }]} // Add ImageKit transformations * /> * ``` + * + * @example + * ```jsx + * // With ref for programmatic control + * const videoRef = useRef(null); + *